diff --git a/poetry.lock b/poetry.lock index 446c791b4..9db4a218a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2238,21 +2238,21 @@ diagrams = ["jinja2", "railroad-diagrams"] [[package]] name = "pytest" -version = "8.4.2" +version = "9.0.3" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79"}, - {file = "pytest-8.4.2.tar.gz", hash = "sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01"}, + {file = "pytest-9.0.3-py3-none-any.whl", hash = "sha256:2c5efc453d45394fdd706ade797c0a81091eccd1d6e4bccfcd476e2b8e0ab5d9"}, + {file = "pytest-9.0.3.tar.gz", hash = "sha256:b86ada508af81d19edeb213c681b1d48246c1a91d304c6c81a427674c17eb91c"}, ] [package.dependencies] colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""} exceptiongroup = {version = ">=1", markers = "python_version < \"3.11\""} -iniconfig = ">=1" -packaging = ">=20" +iniconfig = ">=1.0.1" +packaging = ">=22" pluggy = ">=1.5,<2" pygments = ">=2.7.2" tomli = {version = ">=1", markers = "python_version < \"3.11\""} diff --git a/tests/test_databases/test_transaction_as_fixture.py b/tests/test_databases/test_transaction_as_fixture.py index 4d3b4bbd1..d7cdb140e 100644 --- a/tests/test_databases/test_transaction_as_fixture.py +++ b/tests/test_databases/test_transaction_as_fixture.py @@ -20,7 +20,6 @@ def anyio_backend(): return "asyncio" -@pytest.mark.anyio @pytest.fixture(scope="function", autouse=True) async def db_session(): async with base_ormar_config.database: diff --git a/tests/test_queries/test_selecting_subset_of_columns.py b/tests/test_queries/test_selecting_subset_of_columns.py index 748335963..e60aba841 100644 --- a/tests/test_queries/test_selecting_subset_of_columns.py +++ b/tests/test_queries/test_selecting_subset_of_columns.py @@ -57,7 +57,6 @@ class Car(ormar.Model): @pytest_asyncio.fixture(autouse=True, scope="module") -@pytest.mark.usefixtures("create_test_database") async def sample_data(): async with base_ormar_config.database: nick1 = await NickNames.objects.create(name="Nippon", is_lame=False) diff --git a/tests/test_queries/test_values_and_values_list.py b/tests/test_queries/test_values_and_values_list.py index 95d9bfdb7..cc7159b91 100644 --- a/tests/test_queries/test_values_and_values_list.py +++ b/tests/test_queries/test_values_and_values_list.py @@ -47,7 +47,6 @@ class Post(ormar.Model): @pytest_asyncio.fixture(autouse=True, scope="module") -@pytest.mark.usefixtures("create_test_database") async def sample_data(): async with base_ormar_config.database: creator = await User(name="Anonymous").save()