diff options
author | Frederick Muriuki Muriithi | 2022-11-16 13:09:44 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-11-16 13:09:44 +0300 |
commit | 58dcae95ba70689dcceb5e8c8f869fe490541a4c (patch) | |
tree | f1bbaf18425c217452d81f3c1173d7d5754a4741 /tests/unit/auth/test_privileges.py | |
parent | 366ad0315ed90ac4496714de9e84c04530fec278 (diff) | |
download | genenetwork3-58dcae95ba70689dcceb5e8c8f869fe490541a4c.tar.gz |
pylint: fix some linting errors
Diffstat (limited to 'tests/unit/auth/test_privileges.py')
-rw-r--r-- | tests/unit/auth/test_privileges.py | 11 |
1 files changed, 3 insertions, 8 deletions
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 |