- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_invalid_response_model_in_responses_raises (0.2 sec)
-
tests/test_response_model_invalid.py
with pytest.raises(FastAPIError): app = FastAPI() @app.get("/", response_model=List[NonPydanticModel]) def read_root(): pass # pragma: nocover def test_invalid_response_model_in_responses_raises(): with pytest.raises(FastAPIError): app = FastAPI() @app.get("/", responses={"500": {"model": NonPydanticModel}}) def read_root(): pass # pragma: nocover
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 29 13:04:35 UTC 2020 - 1.1K bytes - Viewed (0)