From 53c2bdf3e5d217f7b68d872e4c056970d138fad9 Mon Sep 17 00:00:00 2001 From: Jiri Kozel Date: Tue, 28 Nov 2023 15:15:50 +0100 Subject: [PATCH] Fix test_who_can_write_can_read test --- src/layman/common/prime_db_schema/publications_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layman/common/prime_db_schema/publications_test.py b/src/layman/common/prime_db_schema/publications_test.py index c5d620bf1..80334aa9d 100644 --- a/src/layman/common/prime_db_schema/publications_test.py +++ b/src/layman/common/prime_db_schema/publications_test.py @@ -99,11 +99,11 @@ def test_who_can_write_can_read(): assert exc_info.value.code == 43 with pytest.raises(LaymanError) as exc_info: - publications.who_can_write_can_read(username, {settings.RIGHTS_EVERYONE_ROLE, }) + publications.who_can_write_can_read({username}, {settings.RIGHTS_EVERYONE_ROLE, }) assert exc_info.value.code == 43 with pytest.raises(LaymanError) as exc_info: - publications.who_can_write_can_read(username, {workspace_name, }) + publications.who_can_write_can_read({username}, {workspace_name, }) assert exc_info.value.code == 43