From 58dcae95ba70689dcceb5e8c8f869fe490541a4c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 16 Nov 2022 13:09:44 +0300 Subject: pylint: fix some linting errors --- tests/unit/auth/test_privileges.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/unit/auth/test_privileges.py b/tests/unit/auth/test_privileges.py index 13bcd7f..2514f9d 100644 --- a/tests/unit/auth/test_privileges.py +++ b/tests/unit/auth/test_privileges.py @@ -39,17 +39,12 @@ PRIVILEGES = sorted( ("ae9c6245-0966-41a5-9a5e-20885a96bea7", []), ("9a0c7ce5-2f40-4e78-979e-bf3527a59579", []), ("e614247d-84d2-491d-a048-f80b578216cb", []))) -def test_user_privileges(auth_testdb_path, test_users, user_id, expected): +def test_user_privileges(auth_testdb_path, test_users, user_id, expected):# pylint: disable=[unused-argument] """ GIVEN: A user_id WHEN: An attempt is made to fetch the user's privileges THEN: Ensure only """ with db.connection(auth_testdb_path) as conn: - privs = sorted(user_privileges(conn, UUID(user_id)), key=SORT_KEY) - print(f"PRIVILEGES: {privs}") - # assert False, "FAILURE!!!" - # assert privs == expected - - print(f"EXPECTED: {expected}") - assert privs == expected + assert sorted( + user_privileges(conn, UUID(user_id)), key=SORT_KEY) == expected -- cgit v1.2.3