aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-01-21 03:23:11 +0300
committerFrederick Muriuki Muriithi2023-01-21 03:23:11 +0300
commite92ceacccb4c8d32f28ed7d2530ddc6912a730d4 (patch)
tree0b480a9eddb938ee922ec479753e287eac81a6e6
parentaee68e2a2675c225364b8e02d4e99cb0951dc89e (diff)
downloadgenenetwork3-e92ceacccb4c8d32f28ed7d2530ddc6912a730d4.tar.gz
tests: roles - Extract values from Maybe object
-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 bee03fc..7252bfe 100644
--- a/tests/unit/auth/test_roles.py
+++ b/tests/unit/auth/test_roles.py
@@ -100,4 +100,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) == expected
+ assert user_roles(conn, user).maybe(tuple(), lambda rls: rls) == expected