mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
added in unit test for org admin deleting user
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user