Home / Function/ test_query_param_model_extra() — fastapi Function Reference

test_query_param_model_extra() — fastapi Function Reference

Architecture documentation for the test_query_param_model_extra() function in test_tutorial002.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  cb83e3a6_e653_0967_6d49_0aa2a44f1297["test_query_param_model_extra()"]
  403cc16e_3d5f_4324_0a51_b60b3753d450["test_tutorial002.py"]
  cb83e3a6_e653_0967_6d49_0aa2a44f1297 -->|defined in| 403cc16e_3d5f_4324_0a51_b60b3753d450
  style cb83e3a6_e653_0967_6d49_0aa2a44f1297 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_query_param_models/test_tutorial002.py lines 95–118

def test_query_param_model_extra(client: TestClient):
    response = client.get(
        "/items/",
        params={
            "limit": 10,
            "offset": 5,
            "order_by": "updated_at",
            "tags": ["tag1", "tag2"],
            "tool": "plumbus",
        },
    )
    assert response.status_code == 422
    assert response.json() == snapshot(
        {
            "detail": [
                {
                    "type": "extra_forbidden",
                    "loc": ["query", "tool"],
                    "msg": "Extra inputs are not permitted",
                    "input": "plumbus",
                }
            ]
        }
    )

Domain

Subdomains

Frequently Asked Questions

What does test_query_param_model_extra() do?
test_query_param_model_extra() is a function in the fastapi codebase, defined in tests/test_tutorial/test_query_param_models/test_tutorial002.py.
Where is test_query_param_model_extra() defined?
test_query_param_model_extra() is defined in tests/test_tutorial/test_query_param_models/test_tutorial002.py at line 95.

Analyze Your Own Codebase

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

Try Supermodel Free