Browse Source

remove need for python 3.11

pull/14361/head
svlandeg 8 months ago
parent
commit
6b0ec48db2
  1. 3
      tests/test_schema_compat_pydantic_v2.py
  2. 3
      tests/utils.py

3
tests/test_schema_compat_pydantic_v2.py

@ -4,7 +4,7 @@ from fastapi.testclient import TestClient
from inline_snapshot import snapshot
from pydantic import BaseModel
from tests.utils import needs_py311, needs_pydanticv2
from tests.utils import needs_pydanticv2
@pytest.fixture(name="client")
@ -32,7 +32,6 @@ def get_client():
@needs_pydanticv2
@needs_py311
def test_openapi_schema(client: TestClient):
response = client.get("openapi.json")
assert response.json() == snapshot(

3
tests/utils.py

@ -8,9 +8,6 @@ needs_py39 = pytest.mark.skipif(sys.version_info < (3, 9), reason="requires pyth
needs_py310 = pytest.mark.skipif(
sys.version_info < (3, 10), reason="requires python3.10+"
)
needs_py311 = pytest.mark.skipif(
sys.version_info < (3, 11), reason="requires python3.11+"
)
needs_py_lt_314 = pytest.mark.skipif(
sys.version_info > (3, 13), reason="requires python3.13-"
)

Loading…
Cancel
Save