From bb34ca662f402b1cbbd91577437bbceea3c34eb2 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 24 Oct 2016 16:45:37 -0400 Subject: [PATCH] update job unit tests to HA project update changes --- awx/main/tests/unit/models/test_job_unit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/unit/models/test_job_unit.py b/awx/main/tests/unit/models/test_job_unit.py index 9de1f77ee6..ff55d7103b 100644 --- a/awx/main/tests/unit/models/test_job_unit.py +++ b/awx/main/tests/unit/models/test_job_unit.py @@ -7,12 +7,14 @@ from awx.main.models import Job @pytest.fixture def job(mocker): - return mocker.MagicMock(**{ + ret = mocker.MagicMock(**{ 'display_extra_vars.return_value': '{\"secret_key\": \"$encrypted$\"}', 'extra_vars_dict': {"secret_key": "my_password"}, 'pk': 1, 'job_template.pk': 1, 'job_template.name': '', 'created_by.pk': 1, 'created_by.username': 'admin', 'launch_type': 'manual'}) + ret.project = mocker.MagicMock(scm_revision='asdf1234') + return ret @pytest.mark.survey def test_job_survey_password_redaction():