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