diff options
author | Frederick Muriuki Muriithi | 2023-01-21 03:23:11 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-01-21 03:23:11 +0300 |
commit | e92ceacccb4c8d32f28ed7d2530ddc6912a730d4 (patch) | |
tree | 0b480a9eddb938ee922ec479753e287eac81a6e6 /tests/unit/auth | |
parent | aee68e2a2675c225364b8e02d4e99cb0951dc89e (diff) | |
download | genenetwork3-e92ceacccb4c8d32f28ed7d2530ddc6912a730d4.tar.gz |
tests: roles - Extract values from Maybe object
Diffstat (limited to 'tests/unit/auth')
-rw-r--r-- | tests/unit/auth/test_roles.py | 2 |
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 |