Merge pull request #6330 from rooftopcellist/fix_flakey_workflow_functest

Fix flaky workflow test & set junit family

Reviewed-by: Christian Adams <rooftopcellist@gmail.com>
             https://github.com/rooftopcellist
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-03-18 19:27:26 +00:00 committed by GitHub
commit eda494be63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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