From e1d1a7613d9f52c810fff4dfe74839107f9025b3 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 9 Mar 2022 11:15:20 -0500 Subject: [PATCH] Fix test to use workflow_spec_id --- .../get_workflow_status.bpmn | 26 +++++++++---------- tests/scripts/test_get_workflow_status.py | 4 +-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/data/get_workflow_status/get_workflow_status.bpmn b/tests/data/get_workflow_status/get_workflow_status.bpmn index 7bb8d5b1..c49170b7 100644 --- a/tests/data/get_workflow_status/get_workflow_status.bpmn +++ b/tests/data/get_workflow_status/get_workflow_status.bpmn @@ -8,7 +8,7 @@ Flow_0wp4z9u Flow_0fl7rsj - status_arg = get_workflow_status(search_workflow_id) + status_arg = get_workflow_status(workflow_spec_id) @@ -21,7 +21,7 @@ Flow_00x8h5p Flow_0lt7dwr - status_kwarg = get_workflow_status(search_workflow_id=search_workflow_id) + status_kwarg = get_workflow_status(workflow_spec_id=workflow_spec_id) # Status Kwarg @@ -38,7 +38,7 @@ - + @@ -51,6 +51,10 @@ + + + + @@ -71,22 +75,15 @@ - - - - + + + - - - - - - @@ -96,6 +93,9 @@ + + + diff --git a/tests/scripts/test_get_workflow_status.py b/tests/scripts/test_get_workflow_status.py index bb34babb..c6959635 100644 --- a/tests/scripts/test_get_workflow_status.py +++ b/tests/scripts/test_get_workflow_status.py @@ -16,13 +16,13 @@ class TestGetWorkflowStatus(BaseTest): def test_get_workflow_status(self): self.create_workflow('random_fact') workflow_model_1 = session.query(WorkflowModel).filter(WorkflowModel.id == 1).first() - search_workflow_id = workflow_model_1.id + workflow_spec_id = workflow_model_1.workflow_spec_id workflow = self.create_workflow('get_workflow_status') workflow_api = self.get_workflow_api(workflow) task = workflow_api.next_task # calls get_workflow_status(search_workflow_id) - workflow_api = self.complete_form(workflow, task, {'search_workflow_id': search_workflow_id}) + workflow_api = self.complete_form(workflow, task, {'workflow_spec_id': workflow_spec_id}) task = workflow_api.next_task self.assertEqual('Activity_StatusArg', task.name) self.assertEqual(task.data['status_arg'], workflow_model_1.status.value)