Wrapping LOCKED task update attempt into a try-catch block for tests

This commit is contained in:
Carlos Lopez 2020-07-27 14:00:44 -06:00
parent 0d2cb8c1b8
commit de0fe705c3
1 changed files with 3 additions and 1 deletions

View File

@ -259,6 +259,8 @@ class TestTasksApi(BaseTest):
self.assertEquals(0, len(self.get_assignment_task_events(supervisor.uid)))
# Sending any subsequent complete forms does not result in a new task event
with self.assertRaises(AssertionError) as _api_error:
workflow_api = self.complete_form(workflow, workflow_api.next_task, data, user_uid=submitter.uid)
self.assertEquals(0, len(self.get_assignment_task_events(submitter.uid)))
self.assertEquals(0, len(self.get_assignment_task_events(supervisor.uid)))