From 836924e7dccddaceb036fe3a312ca6811ccf2228 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 8 Dec 2022 08:09:40 +0300 Subject: tests: Fix issues caught by tests The addition of the `public` field in the `resources` table, led to some previously passing tests to fail. This commit fixes the failures, and cleans up some pylint issues. * gn3/auth/authorisation/resources.py: add `public` to db queries * tests/unit/auth/test_groups.py: fix pylint issues --- tests/unit/auth/test_groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/auth/test_groups.py') diff --git a/tests/unit/auth/test_groups.py b/tests/unit/auth/test_groups.py index 79dc16f..9eef0e9 100644 --- a/tests/unit/auth/test_groups.py +++ b/tests/unit/auth/test_groups.py @@ -115,5 +115,5 @@ def test_user_group(test_users_in_group, user, expected): THEN: return a Maybe containing the group that the user belongs to, or Nothing """ - conn, group, users = test_users_in_group + conn, _group, _users = test_users_in_group assert user_group(conn, user).maybe(Nothing, lambda val: val) == expected -- cgit v1.2.3