Lol, these were the only 2 uncovered lines

This commit is contained in:
shamoon 2024-11-25 21:27:43 -08:00
parent 6b36ee7819
commit 18bdf0cef7
No known key found for this signature in database

View File

@ -2117,6 +2117,7 @@ class TestWorkflows(
to="user@example.com",
include_document=False,
)
self.assertEqual(str(email_action), f"Workflow Email Action {email_action.id}")
action = WorkflowAction.objects.create(
type=WorkflowAction.WorkflowActionType.EMAIL,
email=email_action,
@ -2316,6 +2317,10 @@ class TestWorkflows(
url="http://paperless-ngx.com",
include_document=False,
)
self.assertEqual(
str(webhook_action),
f"Workflow Webhook Action {webhook_action.id}",
)
action = WorkflowAction.objects.create(
type=WorkflowAction.WorkflowActionType.WEBHOOK,
webhook=webhook_action,