Coverage for tests/test_tutorial/test_response_model/test_tutorial003_04.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-08 03:53 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-08 03:53 +0000
1import pytest 1bacde
2from fastapi.exceptions import FastAPIError 1bacde
5def test_invalid_response_model(): 1bacde
6 with pytest.raises(FastAPIError): 1bacde
7 from docs_src.response_model.tutorial003_04 import app 1bacde
9 assert app # pragma: no cover 1a