From 4a0c371014c53602caad2c3d7fdb1f05b6c2ba69 Mon Sep 17 00:00:00 2001 From: Christian Adams Date: Wed, 18 Mar 2020 12:48:40 -0400 Subject: [PATCH] Fix flaky workflow test & set junit family --- awx/main/tests/unit/test_access.py | 3 +++ awxkit/tox.ini | 1 + pytest.ini | 1 + 3 files changed, 5 insertions(+) diff --git a/awx/main/tests/unit/test_access.py b/awx/main/tests/unit/test_access.py index abef7df728..49c2a54467 100644 --- a/awx/main/tests/unit/test_access.py +++ b/awx/main/tests/unit/test_access.py @@ -183,6 +183,9 @@ def test_change_jt_sensitive_data(job_template_with_ids, mocker, user_unit): """Assure that can_add is called with all ForeignKeys.""" class RoleReturnsTrue(Role): + class Meta: + proxy = True + def __contains__(self, accessor): return True diff --git a/awxkit/tox.ini b/awxkit/tox.ini index 7f9509259c..7931be5491 100644 --- a/awxkit/tox.ini +++ b/awxkit/tox.ini @@ -43,3 +43,4 @@ max-line-length = 120 [pytest] addopts = -v --tb=native +junit_family=xunit2 \ No newline at end of file diff --git a/pytest.ini b/pytest.ini index b01407052a..ecdcd74b9d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -8,3 +8,4 @@ markers = ac: access control test survey: tests related to survey feature inventory_import: tests of code used by inventory import command +junit_family=xunit2 \ No newline at end of file