Skip to content

Commit dee0eff

Browse files
committed
Allow remove from project
1 parent 78f2c3a commit dee0eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mergin/test/test_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2802,7 +2802,8 @@ def test_access_management(mc: MerginClient, mc2: MerginClient):
28022802
collaborators = mc.list_project_collaborators(test_project_id)
28032803
updated_collaborator = next((c for c in collaborators if c["id"] == new_user["id"]))
28042804
assert updated_collaborator["project_role"] == updated_role.value
2805-
# remove project collaborator
2805+
# remove project collaborator, add this user guest first to make sure it can be removed from project collaborators
2806+
mc.update_workspace_member(workspace_id, new_user["id"], WorkspaceRole.GUEST)
28062807
mc.remove_project_collaborator(test_project_id, new_user["id"])
28072808
collaborators = mc.list_project_collaborators(test_project_id)
28082809
assert not any(c["id"] == new_user["id"] for c in collaborators)

0 commit comments

Comments
 (0)