Coverage for tests/test_tutorial/test_response_model/test_tutorial003_04_py310.py: 100%
7 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 1deabc
2from fastapi.exceptions import FastAPIError 1deabc
4from ...utils import needs_py310 1deabc
7@needs_py310 1deabc
8def test_invalid_response_model(): 1deabc
9 with pytest.raises(FastAPIError): 1abc
10 from docs_src.response_model.tutorial003_04_py310 import app 1abc
12 assert app # pragma: no cover