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