mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-03-13 09:29:54 +08:00
➖ Drop support for Python 3.9 (#1766)
This commit is contained in:
committed by
GitHub
parent
ffdcb44ae2
commit
ede8dd062d
@@ -1,6 +1,6 @@
|
||||
import importlib
|
||||
from types import ModuleType
|
||||
from typing import Any, Union
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
from sqlmodel import create_engine
|
||||
@@ -8,7 +8,7 @@ from sqlmodel import create_engine
|
||||
from ...conftest import PrintMock, needs_py310
|
||||
|
||||
|
||||
def check_calls(calls: list[list[Union[str, dict[str, Any]]]]):
|
||||
def check_calls(calls: list[list[str | dict[str, Any]]]):
|
||||
assert calls[0][0] == {
|
||||
"name": "Deadpond",
|
||||
"secret_name": "Dive Wilson",
|
||||
@@ -40,7 +40,6 @@ def get_module(request: pytest.FixtureRequest) -> ModuleType:
|
||||
@pytest.mark.parametrize(
|
||||
"module",
|
||||
[
|
||||
pytest.param("tutorial001_py39"),
|
||||
pytest.param("tutorial001_py310", marks=needs_py310),
|
||||
],
|
||||
indirect=True,
|
||||
@@ -53,7 +52,6 @@ def test_tutorial_001(print_mock: PrintMock, module: ModuleType):
|
||||
@pytest.mark.parametrize(
|
||||
"module",
|
||||
[
|
||||
pytest.param("tutorial002_py39"),
|
||||
pytest.param("tutorial002_py310", marks=needs_py310),
|
||||
],
|
||||
indirect=True,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import importlib
|
||||
from types import ModuleType
|
||||
from typing import Any, Union
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
from sqlmodel import create_engine
|
||||
@@ -8,7 +8,7 @@ from sqlmodel import create_engine
|
||||
from ...conftest import PrintMock, needs_py310
|
||||
|
||||
|
||||
def check_calls(calls: list[list[Union[str, dict[str, Any]]]]):
|
||||
def check_calls(calls: list[list[str | dict[str, Any]]]):
|
||||
assert calls[0][0] == [
|
||||
{
|
||||
"name": "Deadpond",
|
||||
@@ -42,7 +42,6 @@ def get_module(request: pytest.FixtureRequest) -> ModuleType:
|
||||
@pytest.mark.parametrize(
|
||||
"module",
|
||||
[
|
||||
pytest.param("tutorial003_py39"),
|
||||
pytest.param("tutorial003_py310", marks=needs_py310),
|
||||
],
|
||||
indirect=True,
|
||||
@@ -55,7 +54,6 @@ def test_tutorial_003(print_mock: PrintMock, module: ModuleType):
|
||||
@pytest.mark.parametrize(
|
||||
"module",
|
||||
[
|
||||
pytest.param("tutorial004_py39"),
|
||||
pytest.param("tutorial004_py310", marks=needs_py310),
|
||||
],
|
||||
indirect=True,
|
||||
|
||||
Reference in New Issue
Block a user