Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_raises_pydantic_v1_model_in_sequence (0.48 seconds)

  1. tests/test_pydantic_v1_error.py

        with pytest.raises(PydanticV1NotSupportedError):
    
            @app.post("/union")
            def endpoint(data: dict | ModelV1A):  # pragma: no cover
                return data
    
    
    def test_raises_pydantic_v1_model_in_sequence() -> None:
        class ModelV1A(BaseModel):
            name: str
    
        app = FastAPI()
    
        with pytest.raises(PydanticV1NotSupportedError):
    
            @app.post("/sequence")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.3K bytes
    - Click Count (0)
Back to Top