diff --git a/tests/test_ambiguous_params.py b/tests/test_ambiguous_params.py index 3d53224ad8..ce74933505 100644 --- a/tests/test_ambiguous_params.py +++ b/tests/test_ambiguous_params.py @@ -73,8 +73,10 @@ def test_multiple_annotations(): response = client.get("/multi-query", params={"foo": "1"}) assert response.status_code == 422 + def test_query_edge_cases(): app = FastAPI() + @app.get("/edge-query") async def read_edge(q: Annotated[str | None, Query()] = None): return {"q": q}