test_raises_pydantic_v1_model_in_response_model() — fastapi Function Reference
Architecture documentation for the test_raises_pydantic_v1_model_in_response_model() function in test_pydantic_v1_error.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD f8650b32_6e6d_c91b_af47_414f9d69d198["test_raises_pydantic_v1_model_in_response_model()"] 91d1a80c_1c46_e7d1_13fc_d70d9ed094b5["test_pydantic_v1_error.py"] f8650b32_6e6d_c91b_af47_414f9d69d198 -->|defined in| 91d1a80c_1c46_e7d1_13fc_d70d9ed094b5 style f8650b32_6e6d_c91b_af47_414f9d69d198 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_pydantic_v1_error.py lines 46–56
def test_raises_pydantic_v1_model_in_response_model() -> None:
class ResponseModelV1(BaseModel):
name: str
app = FastAPI()
with pytest.raises(PydanticV1NotSupportedError):
@app.get("/response-model", response_model=ResponseModelV1)
def endpoint(): # pragma: no cover
return {"name": "test"}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_raises_pydantic_v1_model_in_response_model() do?
test_raises_pydantic_v1_model_in_response_model() is a function in the fastapi codebase, defined in tests/test_pydantic_v1_error.py.
Where is test_raises_pydantic_v1_model_in_response_model() defined?
test_raises_pydantic_v1_model_in_response_model() is defined in tests/test_pydantic_v1_error.py at line 46.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free