test_read_items_item_id_greater_than_one_thousand() — fastapi Function Reference
Architecture documentation for the test_read_items_item_id_greater_than_one_thousand() function in test_tutorial006.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 86b16ea9_af41_8b47_0f1f_d7cde89b5ed1["test_read_items_item_id_greater_than_one_thousand()"] 17a0f069_68bc_2155_e93d_b485ba6efa92["test_tutorial006.py"] 86b16ea9_af41_8b47_0f1f_d7cde89b5ed1 -->|defined in| 17a0f069_68bc_2155_e93d_b485ba6efa92 style 86b16ea9_af41_8b47_0f1f_d7cde89b5ed1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py lines 57–70
def test_read_items_item_id_greater_than_one_thousand(client: TestClient):
response = client.get("/items/1001?q=somequery&size=5")
assert response.status_code == 422, response.text
assert response.json() == {
"detail": [
{
"loc": ["path", "item_id"],
"input": "1001",
"msg": "Input should be less than or equal to 1000",
"type": "less_than_equal",
"ctx": {"le": 1000},
}
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_read_items_item_id_greater_than_one_thousand() do?
test_read_items_item_id_greater_than_one_thousand() 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_item_id_greater_than_one_thousand() defined?
test_read_items_item_id_greater_than_one_thousand() is defined in tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py at line 57.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free