Skip to content

Commit 3231d2e

Browse files
committed
✅ Remove tests for Python 3.9
1 parent 27c7007 commit 3231d2e

85 files changed

Lines changed: 6 additions & 151 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/test_advanced/test_decimal/test_tutorial001.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
@pytest.fixture(
1212
name="mod",
1313
params=[
14-
pytest.param("tutorial001_py39"),
1514
pytest.param("tutorial001_py310", marks=needs_py310),
1615
],
1716
)

tests/test_advanced/test_uuid/test_tutorial001.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
@pytest.fixture(
1212
name="mod",
1313
params=[
14-
pytest.param("tutorial001_py39"),
1514
pytest.param("tutorial001_py310", marks=needs_py310),
1615
],
1716
)

tests/test_advanced/test_uuid/test_tutorial002.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
@pytest.fixture(
1212
name="mod",
1313
params=[
14-
pytest.param("tutorial002_py39"),
1514
pytest.param("tutorial002_py310", marks=needs_py310),
1615
],
1716
)

tests/test_tutorial/test_automatic_id_none_refresh/test_tutorial001_tutorial002.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import importlib
22
from types import ModuleType
3-
from typing import Any, Union
3+
from typing import Any
44

55
import pytest
66
from sqlmodel import create_engine
77

88
from tests.conftest import PrintMock, needs_py310
99

1010

11-
def check_calls(calls: list[list[Union[str, dict[str, Any]]]]) -> None:
11+
def check_calls(calls: list[list[str | dict[str, Any]]]) -> None:
1212
assert calls[0] == ["Before interacting with the database"]
1313
assert calls[1] == [
1414
"Hero 1:",
@@ -138,8 +138,6 @@ def check_calls(calls: list[list[Union[str, dict[str, Any]]]]) -> None:
138138
@pytest.fixture(
139139
name="module",
140140
params=[
141-
"tutorial001_py39",
142-
"tutorial002_py39",
143141
pytest.param("tutorial001_py310", marks=needs_py310),
144142
pytest.param("tutorial002_py310", marks=needs_py310),
145143
],

tests/test_tutorial/test_code_structure/test_tutorial001.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class Modules:
3434
@pytest.fixture(
3535
name="modules",
3636
params=[
37-
pytest.param("tutorial001_py39"),
3837
pytest.param("tutorial001_py310", marks=needs_py310),
3938
],
4039
)

tests/test_tutorial/test_code_structure/test_tutorial002.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class Modules:
3434
@pytest.fixture(
3535
name="modules",
3636
params=[
37-
pytest.param("tutorial002_py39"),
3837
pytest.param("tutorial002_py310", marks=needs_py310),
3938
],
4039
)

tests/test_tutorial/test_connect/test_create_connected_tables/test_tutorial001.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
@pytest.fixture(
1313
name="module",
1414
params=[
15-
"tutorial001_py39",
1615
pytest.param("tutorial001_py310", marks=needs_py310),
1716
],
1817
)

tests/test_tutorial/test_connect/test_delete/test_tutorial001.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
@pytest.fixture(
6464
name="module",
6565
params=[
66-
"tutorial001_py39",
6766
pytest.param("tutorial001_py310", marks=needs_py310),
6867
],
6968
)

tests/test_tutorial/test_connect/test_insert/test_tutorial001.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
@pytest.fixture(
4444
name="module",
4545
params=[
46-
"tutorial001_py39",
4746
pytest.param("tutorial001_py310", marks=needs_py310),
4847
],
4948
)

tests/test_tutorial/test_connect/test_select/test_tutorial001_tutorial002.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def get_module(request: pytest.FixtureRequest) -> ModuleType:
7777
@pytest.mark.parametrize(
7878
"module",
7979
[
80-
"tutorial001_py39",
8180
pytest.param("tutorial001_py310", marks=needs_py310),
8281
],
8382
indirect=True,
@@ -90,7 +89,6 @@ def test_tutorial001(print_mock: PrintMock, module: ModuleType):
9089
@pytest.mark.parametrize(
9190
"module",
9291
[
93-
"tutorial002_py39",
9492
pytest.param("tutorial002_py310", marks=needs_py310),
9593
],
9694
indirect=True,

0 commit comments

Comments
 (0)