pre-commit-ci-lite[bot]
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
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} |
|
|
|