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