From 38a6fa782d935bdf5e9ec8f29fdd49b60e71fdce Mon Sep 17 00:00:00 2001 From: Dan Date: Mon, 14 Dec 2020 10:29:53 -0500 Subject: [PATCH] Fixing the email script test. --- tests/data/email/email.bpmn | 4 ++-- tests/emails/test_email_script.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/data/email/email.bpmn b/tests/data/email/email.bpmn index 3395e788..7ba69843 100644 --- a/tests/data/email/email.bpmn +++ b/tests/data/email/email.bpmn @@ -1,5 +1,5 @@ - + Flow_1synsig @@ -20,7 +20,7 @@ Email content to be delivered to {{ ApprvlApprvr1 }} --- Flow_08n2npe Flow_1xlrgne - email("Camunda Email Subject",'ApprvlApprvr1','PIComputingID') + email("Camunda Email Subject",ApprvlApprvr1,PIComputingID) diff --git a/tests/emails/test_email_script.py b/tests/emails/test_email_script.py index 1385609b..1a6c6860 100644 --- a/tests/emails/test_email_script.py +++ b/tests/emails/test_email_script.py @@ -1,6 +1,6 @@ +from tests.base_test import BaseTest from crc import mail from crc.models.email import EmailModel -from tests.base_test import BaseTest class TestEmailScript(BaseTest): @@ -9,8 +9,8 @@ class TestEmailScript(BaseTest): workflow = self.create_workflow('email') task_data = { - 'PIComputingID': 'dhf8r', - 'ApprvlApprvr1': 'lb3dp' + 'PIComputingID': 'dhf8r@virginia.edu', + 'ApprvlApprvr1': 'lb3dp@virginia.edu' } task = self.get_workflow_api(workflow).next_task