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