Coverage for tests/utils.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-08-08 03:53 +0000

1import sys 1abcde

2 

3import pytest 1abcde

4from fastapi._compat import PYDANTIC_V2 1abcde

5 

6needs_py39 = pytest.mark.skipif(sys.version_info < (3, 9), reason="requires python3.9+") 1abcde

7needs_py310 = pytest.mark.skipif( 1abcde

8 sys.version_info < (3, 10), reason="requires python3.10+" 

9) 

10needs_pydanticv2 = pytest.mark.skipif(not PYDANTIC_V2, reason="requires Pydantic v2") 1abcde

11needs_pydanticv1 = pytest.mark.skipif(PYDANTIC_V2, reason="requires Pydantic v1") 1abcde