Skip to content

Commit 1914dc3

Browse files
committed
Fix 2 on test for permissions function
1 parent d44dfee commit 1914dc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/mergin/tests/test_permissions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ def test_permissions_require_project_by_many_uuids(client):
154154
assert len(items) == 2
155155
assert all(not isinstance(i, dict) for i in items)
156156

157+
# Reset global permissions for subsequent tests
157158
Configuration.GLOBAL_READ = False
159+
Configuration.GLOBAL_WRITE = False
160+
Configuration.GLOBAL_ADMIN = False
161+
158162
# Second user with no access to private project
159163
user2 = add_user("user_batch", "password")
160164
login(client, user2.username, "password")

0 commit comments

Comments
 (0)