Move email backend check to execute_email_action for consistency

This commit is contained in:
shamoon
2025-12-09 09:53:18 -08:00
parent 4b3365ce9c
commit ce8c0bec59
3 changed files with 8 additions and 8 deletions

View File

@@ -3096,7 +3096,7 @@ class TestWorkflows(
original_filename="sample.pdf",
)
with self.assertLogs("paperless.handlers", level="ERROR") as cm:
with self.assertLogs("paperless.workflows.actions", level="ERROR") as cm:
run_workflows(WorkflowTrigger.WorkflowTriggerType.DOCUMENT_UPDATED, doc)
expected_str = "Email backend has not been configured"