From e92ceacccb4c8d32f28ed7d2530ddc6912a730d4 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 21 Jan 2023 03:23:11 +0300 Subject: tests: roles - Extract values from Maybe object --- tests/unit/auth/test_roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3