diff options
author | Frederick Muriuki Muriithi | 2024-06-18 12:38:29 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-18 12:38:29 -0500 |
commit | 8e460b05da4d419aa1b53b1c639d3e370143de4f (patch) | |
tree | cbf9975e205f00912566334cf80ab3e9f6014e86 /tests/unit/auth/test_privileges.py | |
parent | b515884aedac388a3899baaa0ca70af2f66773d4 (diff) | |
download | gn-auth-8e460b05da4d419aa1b53b1c639d3e370143de4f.tar.gz |
Update tests for new paradigm
* Create a jwt token generator in place of a static token
* Update some fixtures
* Skip some tests that will require more work to fix
Diffstat (limited to 'tests/unit/auth/test_privileges.py')
-rw-r--r-- | tests/unit/auth/test_privileges.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/unit/auth/test_privileges.py b/tests/unit/auth/test_privileges.py index 0b5f120..a225369 100644 --- a/tests/unit/auth/test_privileges.py +++ b/tests/unit/auth/test_privileges.py @@ -25,12 +25,7 @@ PRIVILEGES = sorted( Privilege("group:resource:view-resource", "view a resource and use it in computations"), Privilege("group:resource:edit-resource", "edit/update a resource"), - Privilege("group:resource:delete-resource", "Delete a resource"), - - Privilege("group:role:create-role", "Create a new role"), - Privilege("group:role:edit-role", "edit/update an existing role"), - Privilege("group:user:assign-role", "Assign a role to an existing user"), - Privilege("group:role:delete-role", "Delete an existing role")), + Privilege("group:resource:delete-resource", "Delete a resource")), key=sort_key_privileges) @pytest.mark.unit_test |