Included the failing test, with self.assertRaises

Reworded some of the comments
This commit is contained in:
mike cullerton 2021-07-28 11:22:45 -04:00
parent 217e61eed3
commit 097dd9f9a3
1 changed files with 8 additions and 6 deletions

View File

@ -8,14 +8,16 @@ class TestCallActivityEndEvent(BaseTest):
workflow_api = self.get_workflow_api(workflow) workflow_api = self.get_workflow_api(workflow)
first_task = workflow_api.next_task 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 actual end event has 'Main Workflow'
# The call activity has 'Call Event' # The call activity has 'Call Event'
# This should fail, but it passes # Make sure we have the correct end event,
#self.assertIn('Call Event', first_task.documentation) # 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) self.assertIn('Main Workflow', first_task.documentation)
print('call_activity_end_event')