Browse Source

🎨 Auto format

pull/15182/head
pre-commit-ci-lite[bot] 4 months ago
committed by GitHub
parent
commit
9add8ff46d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      tests/test_ambiguous_params.py

2
tests/test_ambiguous_params.py

@ -73,8 +73,10 @@ def test_multiple_annotations():
response = client.get("/multi-query", params={"foo": "1"}) response = client.get("/multi-query", params={"foo": "1"})
assert response.status_code == 422 assert response.status_code == 422
def test_query_edge_cases(): def test_query_edge_cases():
app = FastAPI() app = FastAPI()
@app.get("/edge-query") @app.get("/edge-query")
async def read_edge(q: Annotated[str | None, Query()] = None): async def read_edge(q: Annotated[str | None, Query()] = None):
return {"q": q} return {"q": q}

Loading…
Cancel
Save