From 097dd9f9a3ef5cbc9993c8e3f43676189264e0d3 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 28 Jul 2021 11:22:45 -0400 Subject: [PATCH] Included the failing test, with self.assertRaises Reworded some of the comments --- .../test_workflow_call_activity_end_event.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/workflow/test_workflow_call_activity_end_event.py b/tests/workflow/test_workflow_call_activity_end_event.py index 3d6a2b07..fd6e4292 100644 --- a/tests/workflow/test_workflow_call_activity_end_event.py +++ b/tests/workflow/test_workflow_call_activity_end_event.py @@ -8,14 +8,16 @@ class TestCallActivityEndEvent(BaseTest): workflow_api = self.get_workflow_api(workflow) first_task = workflow_api.next_task - # This test looks at Element Documentation + # The tests looks at Element Documentation # The actual end event has 'Main Workflow' # The call activity has 'Call Event' - # This should fail, but it passes - #self.assertIn('Call Event', first_task.documentation) + # Make sure we have the correct end event, + # and not the end event from the call activity - # This should pass, but it fails + # This should fail + with self.assertRaises(AssertionError): + self.assertIn('Call Event', first_task.documentation) + + # This should pass self.assertIn('Main Workflow', first_task.documentation) - - print('call_activity_end_event') \ No newline at end of file