Skip to content

Commit

Permalink
Tidy up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Jun 3, 2024
1 parent eb8ccb5 commit 0ecbcc4
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions api/tests/unit/features/versioning/test_unit_versioning_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,29 +654,7 @@ def test_disable_v2_versioning_returns_bad_request_if_not_using_v2_versioning(
assert response.status_code == status.HTTP_400_BAD_REQUEST


def test_retrieve_environment_feature_version_without_path_args(
feature: Feature,
environment_v2_versioning: Environment,
staff_client: APIClient,
with_environment_permissions: WithEnvironmentPermissionsCallable,
) -> None:
# Given
efv = EnvironmentFeatureVersion.objects.first()

url = reverse("api-v1:versioning:get-efv-by-uuid", args=[efv.uuid])
with_environment_permissions([VIEW_ENVIRONMENT], efv.environment_id)

# When
response = staff_client.get(url)

# Then
assert response.status_code == status.HTTP_200_OK

response_json = response.json()
assert response_json["uuid"] == str(efv.uuid)


def test_retrieve_environment_feature_version_without_path_args_permission_denied(
def test_retrieve_environment_feature_version_permission_denied(
feature: Feature,
environment_v2_versioning: Environment,
staff_client: APIClient,
Expand Down

0 comments on commit 0ecbcc4

Please sign in to comment.