Coverage for tests/utils.py: 100%
7 statements
« prev ^ index » next coverage.py v7.6.1, created at 2025-03-10 12:31 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2025-03-10 12:31 +0000
1import sys 1abcdef
3import pytest 1abcdef
4from fastapi._compat import PYDANTIC_V2 1abcdef
6needs_py39 = pytest.mark.skipif(sys.version_info < (3, 9), reason="requires python3.9+") 1abcdef
7needs_py310 = pytest.mark.skipif( 1abcdef
8 sys.version_info < (3, 10), reason="requires python3.10+"
9)
10needs_pydanticv2 = pytest.mark.skipif(not PYDANTIC_V2, reason="requires Pydantic v2") 1abcdef
11needs_pydanticv1 = pytest.mark.skipif(PYDANTIC_V2, reason="requires Pydantic v1") 1abcdef