Skip to content

Commit

Permalink
test: Change group test
Browse files Browse the repository at this point in the history
The new policy action will return the users policy even if the user does not have permission to get_policies
  • Loading branch information
mike-pisman committed Oct 13, 2023
1 parent 166184d commit d4d7980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_3_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ async def test_permissions(client_test: AsyncClient):

# Try to get group permissions
res = await client_test.get(f"/groups/{group.id}/policy", headers=headers)
assert res.status_code == status.HTTP_403_FORBIDDEN
assert res.status_code == status.HTTP_200_OK

# Try to set group permissions
res = await client_test.put(f"/groups/{group.id}/policy",
Expand Down

0 comments on commit d4d7980

Please sign in to comment.