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-05-05 00:03 +0000

1import pytest 1abcdef

2from fastapi.exceptions import FastAPIError 1abcdef

3 

4from ...utils import needs_py310 1abcdef

5 

6 

7@needs_py310 1abcdef

8def test_invalid_response_model(): 1abcdef

9 with pytest.raises(FastAPIError): 1ghij

10 from docs_src.response_model.tutorial003_04_py310 import app 1ghij

11 

12 assert app # pragma: no cover