Fix flaky workflow test & set junit family

This commit is contained in:
Christian Adams 2020-03-18 12:48:40 -04:00
parent 3219b9b4ac
commit 4a0c371014
3 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -43,3 +43,4 @@ max-line-length = 120
[pytest]
addopts = -v --tb=native
junit_family=xunit2

View File

@ -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