test_invalid_dict() — fastapi Function Reference
Architecture documentation for the test_invalid_dict() function in test_invalid_sequence_param.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 58374762_97a6_9c1b_ed83_404244c866ed["test_invalid_dict()"] 52e6a25e_03bb_f423_2a64_e9ce91326436["test_invalid_sequence_param.py"] 58374762_97a6_9c1b_ed83_404244c866ed -->|defined in| 52e6a25e_03bb_f423_2a64_e9ce91326436 style 58374762_97a6_9c1b_ed83_404244c866ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_invalid_sequence_param.py lines 38–50
def test_invalid_dict():
with pytest.raises(
AssertionError,
match="Query parameter 'q' must be one of the supported types",
):
app = FastAPI()
class Item(BaseModel):
title: str
@app.get("/items/")
def read_items(q: dict[str, Item] = Query(default=None)):
pass # pragma: no cover
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_invalid_dict() do?
test_invalid_dict() is a function in the fastapi codebase, defined in tests/test_invalid_sequence_param.py.
Where is test_invalid_dict() defined?
test_invalid_dict() is defined in tests/test_invalid_sequence_param.py at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free