mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
added in unit test for org admin deleting user
This commit is contained in:
parent
075d1a2521
commit
758529d7dd
@ -150,3 +150,9 @@ def test_org_admin_edit_sys_auditor(org_admin, alice, organization):
|
||||
organization.member_role.members.add(alice)
|
||||
access = UserAccess(org_admin)
|
||||
assert not access.can_change(obj=alice, data=dict(is_system_auditor='true'))
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_org_admin_can_delete_user(org_admin, alice):
|
||||
access = UserAccess(org_admin)
|
||||
assert access.can_delete(alice)
|
||||
Loading…
x
Reference in New Issue
Block a user