Skip to content

Commit

Permalink
Fix test_who_can_write_can_read test
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik committed Nov 28, 2023
1 parent a4e9c2c commit 53c2bdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layman/common/prime_db_schema/publications_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 53c2bdf

Please sign in to comment.