Skip to content

Commit

Permalink
revert: use admin_client_new
Browse files Browse the repository at this point in the history
  • Loading branch information
gagantrivedi committed Nov 4, 2024
1 parent a1ee29e commit c425328
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions api/tests/unit/environments/test_unit_environments_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,18 +952,14 @@ def test_delete_trait_keys_deletes_traits_matching_provided_key_only(
assert Trait.objects.filter(identity=identity, trait_key=trait_to_persist).exists()


@pytest.mark.parametrize(
"client",
[(lazy_fixture("admin_master_api_key_client")), (lazy_fixture("admin_client"))],
)
def test_user_can_list_environment_permission(
client: APIClient, environment: Environment
admin_client_new: APIClient, environment: Environment
) -> None:
# Given
url = reverse("api-v1:environments:environment-permissions")

# When
response = client.get(url)
response = admin_client_new.get(url)

# Then
assert response.status_code == status.HTTP_200_OK
Expand Down

0 comments on commit c425328

Please sign in to comment.