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 2025-01-13 13:38 +0000

1import pytest 1abcde

2from fastapi.exceptions import FastAPIError 1abcde

3 

4from ...utils import needs_py310 1abcde

5 

6 

7@needs_py310 1abcde

8def test_invalid_response_model(): 1abcde

9 with pytest.raises(FastAPIError): 1fgh

10 from docs_src.response_model.tutorial003_04_py310 import app 1fgh

11 

12 assert app # pragma: no cover