aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-02-10 14:07:41 +0300
committerFrederick Muriuki Muriithi2023-02-10 14:07:41 +0300
commita93b9599d6e342f8fd588022ca14336465f7ff7c (patch)
tree63caea29caf15f723341341026706a4601b0a7b3 /tests/unit/auth
parent0d2a9c130531a2786b2dd01adc172e5005f13f59 (diff)
downloadgenenetwork3-a93b9599d6e342f8fd588022ca14336465f7ff7c.tar.gz
Return empty tuple rather than Nothing
When user has no roles assigned, return an empty tuple rather than pymonad.maybe.Nothing to ease maintenance.
Diffstat (limited to 'tests/unit/auth')
-rw-r--r--tests/unit/auth/test_roles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/auth/test_roles.py b/tests/unit/auth/test_roles.py
index 30b7f43..0914b54 100644
--- a/tests/unit/auth/test_roles.py
+++ b/tests/unit/auth/test_roles.py
@@ -118,4 +118,4 @@ def test_user_roles(fxtr_group_user_roles, user, expected):
THEN: return **ALL** the privileges attached to the user
"""
conn, *_others = fxtr_group_user_roles
- assert user_roles(conn, user).maybe(tuple(), lambda rls: rls) == expected
+ assert user_roles(conn, user) == expected