Home / Function/ test_invalid_response_model_sub_type_raises() — fastapi Function Reference

test_invalid_response_model_sub_type_raises() — fastapi Function Reference

Architecture documentation for the test_invalid_response_model_sub_type_raises() function in test_response_model_invalid.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  ba57e9b0_ad78_39be_14cf_7550c6e57896["test_invalid_response_model_sub_type_raises()"]
  17a07543_9f2e_6671_f427_5704da36fca0["test_response_model_invalid.py"]
  ba57e9b0_ad78_39be_14cf_7550c6e57896 -->|defined in| 17a07543_9f2e_6671_f427_5704da36fca0
  style ba57e9b0_ad78_39be_14cf_7550c6e57896 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_response_model_invalid.py lines 19–25

def test_invalid_response_model_sub_type_raises():
    with pytest.raises(FastAPIError):
        app = FastAPI()

        @app.get("/", response_model=list[NonPydanticModel])
        def read_root():
            pass  # pragma: nocover

Domain

Subdomains

Frequently Asked Questions

What does test_invalid_response_model_sub_type_raises() do?
test_invalid_response_model_sub_type_raises() is a function in the fastapi codebase, defined in tests/test_response_model_invalid.py.
Where is test_invalid_response_model_sub_type_raises() defined?
test_invalid_response_model_sub_type_raises() is defined in tests/test_response_model_invalid.py at line 19.

Analyze Your Own Codebase

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

Try Supermodel Free