From 2d3172f648dae6b834db5c0a84b6df40b59891fc Mon Sep 17 00:00:00 2001 From: Rebeccah Date: Thu, 9 Jan 2020 19:05:37 -0500 Subject: [PATCH] added in support for existing workflow unit tests --- awx/main/tests/unit/models/test_workflow_unit.py | 2 ++ awx/main/tests/unit/scheduler/test_dag_workflow.py | 1 + 2 files changed, 3 insertions(+) diff --git a/awx/main/tests/unit/models/test_workflow_unit.py b/awx/main/tests/unit/models/test_workflow_unit.py index 5f53d97a0b..1dc4003ef0 100644 --- a/awx/main/tests/unit/models/test_workflow_unit.py +++ b/awx/main/tests/unit/models/test_workflow_unit.py @@ -171,6 +171,7 @@ class TestWorkflowJobCreate: with mocker.patch('awx.main.models.WorkflowJobNode.objects.create', mock_create): wfjt_node_no_prompts.create_workflow_job_node(workflow_job=workflow_job_unit) mock_create.assert_called_once_with( + all_parents_must_converge=False, extra_data={}, survey_passwords={}, char_prompts=wfjt_node_no_prompts.char_prompts, @@ -185,6 +186,7 @@ class TestWorkflowJobCreate: workflow_job=workflow_job_unit ) mock_create.assert_called_once_with( + all_parents_must_converge=False, extra_data={}, survey_passwords={}, char_prompts=wfjt_node_with_prompts.char_prompts, diff --git a/awx/main/tests/unit/scheduler/test_dag_workflow.py b/awx/main/tests/unit/scheduler/test_dag_workflow.py index 7f85ba2f85..6a1d81386d 100644 --- a/awx/main/tests/unit/scheduler/test_dag_workflow.py +++ b/awx/main/tests/unit/scheduler/test_dag_workflow.py @@ -19,6 +19,7 @@ class WorkflowNode(object): self.job = job self.do_not_run = do_not_run self.unified_job_template = unified_job_template + self.all_parents_must_converge = False @pytest.fixture