test_query_params_str_validations_q_short() — fastapi Function Reference
Architecture documentation for the test_query_params_str_validations_q_short() function in test_tutorial006c.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 3267cf60_0e48_91ba_1d83_227dcbf5ebd7["test_query_params_str_validations_q_short()"] e5841cbe_1b47_92bc_efbd_9cadb8faae64["test_tutorial006c.py"] 3267cf60_0e48_91ba_1d83_227dcbf5ebd7 -->|defined in| e5841cbe_1b47_92bc_efbd_9cadb8faae64 style 3267cf60_0e48_91ba_1d83_227dcbf5ebd7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_query_params_str_validations/test_tutorial006c.py lines 58–71
def test_query_params_str_validations_q_short(client: TestClient):
response = client.get("/items/", params={"q": "fa"})
assert response.status_code == 422
assert response.json() == {
"detail": [
{
"type": "string_too_short",
"loc": ["query", "q"],
"msg": "String should have at least 3 characters",
"input": "fa",
"ctx": {"min_length": 3},
}
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_query_params_str_validations_q_short() do?
test_query_params_str_validations_q_short() is a function in the fastapi codebase, defined in tests/test_tutorial/test_query_params_str_validations/test_tutorial006c.py.
Where is test_query_params_str_validations_q_short() defined?
test_query_params_str_validations_q_short() is defined in tests/test_tutorial/test_query_params_str_validations/test_tutorial006c.py at line 58.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free