test_query_params_str_validations_q_nonregexquery() — fastapi Function Reference
Architecture documentation for the test_query_params_str_validations_q_nonregexquery() function in test_tutorial004.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD e9a72e99_523b_7087_149a_9275a54d6264["test_query_params_str_validations_q_nonregexquery()"] ea49c47c_91c5_9005_44da_58a85ea6e2ff["test_tutorial004.py"] e9a72e99_523b_7087_149a_9275a54d6264 -->|defined in| ea49c47c_91c5_9005_44da_58a85ea6e2ff style e9a72e99_523b_7087_149a_9275a54d6264 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py lines 52–65
def test_query_params_str_validations_q_nonregexquery(client: TestClient):
response = client.get("/items/", params={"q": "nonregexquery"})
assert response.status_code == 422
assert response.json() == {
"detail": [
{
"type": "string_pattern_mismatch",
"loc": ["query", "q"],
"msg": "String should match pattern '^fixedquery$'",
"input": "nonregexquery",
"ctx": {"pattern": "^fixedquery$"},
}
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_query_params_str_validations_q_nonregexquery() do?
test_query_params_str_validations_q_nonregexquery() is a function in the fastapi codebase, defined in tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py.
Where is test_query_params_str_validations_q_nonregexquery() defined?
test_query_params_str_validations_q_nonregexquery() is defined in tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py at line 52.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free