test_get_items_invalid_id() — fastapi Function Reference
Architecture documentation for the test_get_items_invalid_id() function in test_tutorial002.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 22fc1a89_e55f_a711_d5df_6ab54c8f8e3b["test_get_items_invalid_id()"] 62bf4d34_523e_ca9f_1fc2_bdc1eada82fc["test_tutorial002.py"] 22fc1a89_e55f_a711_d5df_6ab54c8f8e3b -->|defined in| 62bf4d34_523e_ca9f_1fc2_bdc1eada82fc style 22fc1a89_e55f_a711_d5df_6ab54c8f8e3b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_path_params/test_tutorial002.py lines 15–27
def test_get_items_invalid_id():
response = client.get("/items/item1")
assert response.status_code == 422, response.text
assert response.json() == {
"detail": [
{
"input": "item1",
"loc": ["path", "item_id"],
"msg": "Input should be a valid integer, unable to parse string as an integer",
"type": "int_parsing",
}
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_items_invalid_id() do?
test_get_items_invalid_id() is a function in the fastapi codebase, defined in tests/test_tutorial/test_path_params/test_tutorial002.py.
Where is test_get_items_invalid_id() defined?
test_get_items_invalid_id() is defined in tests/test_tutorial/test_path_params/test_tutorial002.py at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free