test_read_items_size_too_large() — fastapi Function Reference
Architecture documentation for the test_read_items_size_too_large() function in test_tutorial006.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 5612b10c_a430_e549_5403_e44a6722e3a2["test_read_items_size_too_large()"] 17a0f069_68bc_2155_e93d_b485ba6efa92["test_tutorial006.py"] 5612b10c_a430_e549_5403_e44a6722e3a2 -->|defined in| 17a0f069_68bc_2155_e93d_b485ba6efa92 style 5612b10c_a430_e549_5403_e44a6722e3a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py lines 89–102
def test_read_items_size_too_large(client: TestClient):
response = client.get("/items/1?q=somequery&size=10.5")
assert response.status_code == 422, response.text
assert response.json() == {
"detail": [
{
"loc": ["query", "size"],
"input": "10.5",
"msg": "Input should be less than 10.5",
"type": "less_than",
"ctx": {"lt": 10.5},
}
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_read_items_size_too_large() do?
test_read_items_size_too_large() is a function in the fastapi codebase, defined in tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py.
Where is test_read_items_size_too_large() defined?
test_read_items_size_too_large() is defined in tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py at line 89.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free