From a93b9599d6e342f8fd588022ca14336465f7ff7c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 10 Feb 2023 14:07:41 +0300 Subject: Return empty tuple rather than Nothing When user has no roles assigned, return an empty tuple rather than pymonad.maybe.Nothing to ease maintenance. --- tests/unit/auth/test_roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/auth') 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 -- cgit v1.2.3