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