run pyl
This commit is contained in:
parent
ca62c49de8
commit
bd9df31810
|
@ -509,19 +509,19 @@ class TestProcessInstanceProcessor(BaseTest):
|
||||||
processor.save()
|
processor.save()
|
||||||
processor = ProcessInstanceProcessor(process_instance)
|
processor = ProcessInstanceProcessor(process_instance)
|
||||||
step1_task = processor.get_task_by_bpmn_identifier("step_1", processor.bpmn_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 is not None
|
||||||
assert (step1_task.state == TaskState.COMPLETED)
|
assert step1_task.state == TaskState.COMPLETED
|
||||||
gateway_task = processor.get_task_by_bpmn_identifier("Gateway_Open", processor.bpmn_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 is not None
|
||||||
assert (gateway_task.state == TaskState.READY)
|
assert gateway_task.state == TaskState.READY
|
||||||
|
|
||||||
gateway_task = processor.bpmn_process_instance.get_tasks(TaskState.READY)[0]
|
gateway_task = processor.bpmn_process_instance.get_tasks(TaskState.READY)[0]
|
||||||
processor.manual_complete_task(str(gateway_task.id), execute=True)
|
processor.manual_complete_task(str(gateway_task.id), execute=True)
|
||||||
processor.save()
|
processor.save()
|
||||||
processor = ProcessInstanceProcessor(process_instance)
|
processor = ProcessInstanceProcessor(process_instance)
|
||||||
gateway_task = processor.get_task_by_bpmn_identifier("Gateway_Open", processor.bpmn_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 is not None
|
||||||
assert (gateway_task.state == TaskState.COMPLETED)
|
assert gateway_task.state == TaskState.COMPLETED
|
||||||
|
|
||||||
def test_properly_saves_tasks_when_running(
|
def test_properly_saves_tasks_when_running(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in New Issue