Skip to content

Commit

Permalink
fix: update set_permissions call in test_api
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Oct 1, 2024
1 parent 61e7a29 commit a9639fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uvdat/core/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def viewset_test(

# Update project permissions
if perm is not None:
test_project.set_permissions(**{perm: [user.id]})
test_project.set_permissions(**{
perm: user if perm == 'owner' else [user]
})
assert get_perms(user, test_project) == [perm]

# Test endpoints
Expand Down

0 comments on commit a9639fc

Please sign in to comment.