From 0e99d150bbc8d95e3856c2f5cad75c5209114b45 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 26 Oct 2016 09:57:57 -0400 Subject: [PATCH] correct error in workflow unit tests --- awx/api/serializers.py | 1 - awx/main/tests/unit/models/test_workflow_unit.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 26730745de..d681fac426 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -2267,7 +2267,6 @@ class WorkflowNodeBaseSerializer(BaseSerializer): def validate(self, attrs): # char_prompts go through different validation, so remove them here - print ' attrs: ' + str(attrs) for fd in ['job_type', 'job_tags', 'skip_tags', 'limit']: if fd in attrs: attrs.pop(fd) diff --git a/awx/main/tests/unit/models/test_workflow_unit.py b/awx/main/tests/unit/models/test_workflow_unit.py index bcbec85c81..bc7e9b5bce 100644 --- a/awx/main/tests/unit/models/test_workflow_unit.py +++ b/awx/main/tests/unit/models/test_workflow_unit.py @@ -217,7 +217,7 @@ class TestWorkflowWarnings: def test_warn_scan_errors_node_prompts(self, job_node_with_prompts): job_node_with_prompts.unified_job_template.job_type = 'scan' - job_node_with_prompts.job_type = 'run' + job_node_with_prompts.char_prompts['job_type'] = 'run' job_node_with_prompts.inventory = Inventory(name='different-inventory', pk=23) assert 'ignored' in job_node_with_prompts.get_prompts_warnings() assert 'job_type' in job_node_with_prompts.get_prompts_warnings()['ignored']