Home / Function/ test_query_params_str_validations_q_fixedquery_too_short() — fastapi Function Reference

test_query_params_str_validations_q_fixedquery_too_short() — fastapi Function Reference

Architecture documentation for the test_query_params_str_validations_q_fixedquery_too_short() function in test_tutorial006.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  b66dd4d1_3d52_30c4_4e56_5493bd8e92c5["test_query_params_str_validations_q_fixedquery_too_short()"]
  e84ede75_658a_b7ef_2d0c_e65b47d333c4["test_tutorial006.py"]
  b66dd4d1_3d52_30c4_4e56_5493bd8e92c5 -->|defined in| e84ede75_658a_b7ef_2d0c_e65b47d333c4
  style b66dd4d1_3d52_30c4_4e56_5493bd8e92c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_query_params_str_validations/test_tutorial006.py lines 48–61

def test_query_params_str_validations_q_fixedquery_too_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

Frequently Asked Questions

What does test_query_params_str_validations_q_fixedquery_too_short() do?
test_query_params_str_validations_q_fixedquery_too_short() is a function in the fastapi codebase, defined in tests/test_tutorial/test_query_params_str_validations/test_tutorial006.py.
Where is test_query_params_str_validations_q_fixedquery_too_short() defined?
test_query_params_str_validations_q_fixedquery_too_short() is defined in tests/test_tutorial/test_query_params_str_validations/test_tutorial006.py at line 48.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free