Skip to content

Commit

Permalink
chore: Revert "test: fix the newly added test that runs fine in isola…
Browse files Browse the repository at this point in the history
…tion"

This reverts commit a845a0d.
  • Loading branch information
Alc-Alc committed Feb 15, 2024
1 parent 60f0b43 commit 0c915bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/unit/test_openapi/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ async def str_path(id: Annotated[str, Parameter(description="String ID")]) -> st
async def uuid_path(id: Annotated[UUID, Parameter(description="UUID ID")]) -> UUID:
return id

with create_test_client(
[str_path, uuid_path], openapi_config=OpenAPIConfig(title="Test API", version="1.0.0")
) as client:
with create_test_client([str_path, uuid_path]) as client:
response = client.get("/schema/openapi.json")
assert response.json()["paths"]["/str/{id}"]["get"]["parameters"][0]["description"] == "String ID"
assert response.json()["paths"]["/uuid/{id}"]["get"]["parameters"][0]["description"] == "UUID ID"

0 comments on commit 0c915bc

Please sign in to comment.