This commit is contained in:
danfunk 2023-05-12 09:22:37 -04:00
parent ca62c49de8
commit bd9df31810
1 changed files with 6 additions and 6 deletions

View File

@ -509,19 +509,19 @@ class TestProcessInstanceProcessor(BaseTest):
processor.save()
processor = ProcessInstanceProcessor(process_instance)
step1_task = processor.get_task_by_bpmn_identifier("step_1", processor.bpmn_process_instance)
assert (step1_task is not None)
assert (step1_task.state == TaskState.COMPLETED)
assert step1_task is not None
assert step1_task.state == TaskState.COMPLETED
gateway_task = processor.get_task_by_bpmn_identifier("Gateway_Open", processor.bpmn_process_instance)
assert (gateway_task is not None)
assert (gateway_task.state == TaskState.READY)
assert gateway_task is not None
assert gateway_task.state == TaskState.READY
gateway_task = processor.bpmn_process_instance.get_tasks(TaskState.READY)[0]
processor.manual_complete_task(str(gateway_task.id), execute=True)
processor.save()
processor = ProcessInstanceProcessor(process_instance)
gateway_task = processor.get_task_by_bpmn_identifier("Gateway_Open", processor.bpmn_process_instance)
assert (gateway_task is not None)
assert (gateway_task.state == TaskState.COMPLETED)
assert gateway_task is not None
assert gateway_task.state == TaskState.COMPLETED
def test_properly_saves_tasks_when_running(
self,