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 e157327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvdat/core/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ 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 e157327

Please sign in to comment.