test_path_param_lt_gt_0() — fastapi Function Reference
Architecture documentation for the test_path_param_lt_gt_0() function in test_path.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 0cc107fd_e954_89db_aa3b_c46be25c604f["test_path_param_lt_gt_0()"] 114b7346_56f1_5baa_099f_1acd87f8d21f["test_path.py"] 0cc107fd_e954_89db_aa3b_c46be25c604f -->|defined in| 114b7346_56f1_5baa_099f_1acd87f8d21f style 0cc107fd_e954_89db_aa3b_c46be25c604f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_path.py lines 472–485
def test_path_param_lt_gt_0():
response = client.get("/path/param-lt-gt/0")
assert response.status_code == 422
assert response.json() == {
"detail": [
{
"type": "greater_than",
"loc": ["path", "item_id"],
"msg": "Input should be greater than 1",
"input": "0",
"ctx": {"gt": 1.0},
}
]
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_path_param_lt_gt_0() do?
test_path_param_lt_gt_0() is a function in the fastapi codebase, defined in tests/test_path.py.
Where is test_path_param_lt_gt_0() defined?
test_path_param_lt_gt_0() is defined in tests/test_path.py at line 472.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free