mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
fix system auditor getter logic
This commit is contained in:
@@ -9,7 +9,7 @@ from awx.main.models import Role, User, Organization, Inventory
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
class TestSysAuditor(TransactionTestCase):
|
||||
class TestSysAuditorTransactional(TransactionTestCase):
|
||||
def rando(self):
|
||||
return User.objects.create(username='rando', password='rando', email='rando@com.com')
|
||||
|
||||
@@ -41,6 +41,10 @@ class TestSysAuditor(TransactionTestCase):
|
||||
assert not rando.is_system_auditor
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_system_auditor_is_system_auditor(system_auditor):
|
||||
assert system_auditor.is_system_auditor
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_user_admin(user_project, project, user):
|
||||
|
||||
Reference in New Issue
Block a user