mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-05 16:01:50 -05:00
Merge pull request #404 from ansible/sys_auditor_can_set_pass
Allow System Auditor to set password
This commit is contained in:
@@ -44,6 +44,12 @@ def test_system_auditor_is_system_auditor(system_auditor):
|
||||
assert system_auditor.is_system_auditor
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_system_auditor_can_modify_self(system_auditor):
|
||||
access = UserAccess(system_auditor)
|
||||
assert access.can_change(obj=system_auditor, data=dict(is_system_auditor='true'))
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_user_queryset(user):
|
||||
u = user('pete', False)
|
||||
|
||||
Reference in New Issue
Block a user