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