aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/auth/test_roles.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-03-06 15:19:35 +0300
committerFrederick Muriuki Muriithi2023-03-06 15:19:35 +0300
commit361a934d1c0d75da01bd19d8ac78bf15aa7e2cad (patch)
treeb8b1e401d5e6fada3ec0200bcf76c213d3cfc658 /tests/unit/auth/test_roles.py
parent98e93be1b8e5353656e18f1452026db6f2902e6c (diff)
downloadgenenetwork3-361a934d1c0d75da01bd19d8ac78bf15aa7e2cad.tar.gz
auth: privileges/roles: fix issues caught by tests.
Diffstat (limited to 'tests/unit/auth/test_roles.py')
-rw-r--r--tests/unit/auth/test_roles.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/auth/test_roles.py b/tests/unit/auth/test_roles.py
index 0914b54..0a3ba19 100644
--- a/tests/unit/auth/test_roles.py
+++ b/tests/unit/auth/test_roles.py
@@ -103,7 +103,9 @@ def test_create_role_raises_exception_for_unauthorised_users(# pylint: disable=[
'Transfer leadership of the group to some other '
'member')),
Privilege(privilege_id='system:group:view-group',
- privilege_description='View the details of a group'))),
+ privilege_description='View the details of a group'),
+ Privilege(privilege_id='system:user:list',
+ privilege_description='List users in the system'))),
Role(
role_id=uuid.UUID("ade7e6b0-ba9c-4b51-87d0-2af7fe39a347"),
role_name="group-creator",