filter internal User.admin_roles from the /roles API list view

This commit is contained in:
Wayne Witzel III
2016-10-13 12:29:02 -04:00
parent 57c599df41
commit 280d265d4e
2 changed files with 5 additions and 2 deletions
@@ -51,7 +51,6 @@ def test_get_roles_list_user(organization, inventory, team, get, user):
assert Role.singleton(ROLE_SINGLETON_SYSTEM_ADMINISTRATOR).id in role_hash
assert organization.admin_role.id in role_hash
assert organization.member_role.id in role_hash
assert this_user.admin_role.id in role_hash
assert custom_role.id in role_hash
assert inventory.admin_role.id not in role_hash