diff --git a/backend/pytest.ini b/backend/pytest.ini index 638e71539..2dc6f5b34 100644 --- a/backend/pytest.ini +++ b/backend/pytest.ini @@ -1,5 +1,6 @@ [pytest] asyncio_mode = auto +asyncio_default_fixture_loop_scope = function testpaths = tests env = ROMM_BASE_PATH=romm_test diff --git a/pyproject.toml b/pyproject.toml index 2d593c011..c0f6281e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,7 +74,7 @@ dev = [ test = [ "fakeredis ~= 2.21", "pytest~=9.0", - "pytest-asyncio ~= 0.23", + "pytest-asyncio ~= 1.1", "pytest-cov ~= 6.2", "pytest-env ~= 1.1", "pytest-mock ~= 3.12", diff --git a/uv.lock b/uv.lock index 1babcd3aa..887eafab3 100644 --- a/uv.lock +++ b/uv.lock @@ -7,7 +7,7 @@ resolution-markers = [ ] [options] -exclude-newer = "2026-04-08T19:46:19.811710324Z" +exclude-newer = "2026-04-08T23:41:46.43846Z" exclude-newer-span = "P7D" [[package]] @@ -1897,14 +1897,14 @@ wheels = [ [[package]] name = "pytest-asyncio" -version = "0.23.3" +version = "1.3.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pytest" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/1d/27/f036ec4bcbfd056c54572d7169ba3dbb54e7181f02f21caadd3aecb9cf5b/pytest-asyncio-0.23.3.tar.gz", hash = "sha256:af313ce900a62fbe2b1aed18e37ad757f1ef9940c6b6a88e2954de38d6b1fb9f", size = 44841, upload-time = "2024-01-01T14:03:58.77Z" } +sdist = { url = "https://files.pythonhosted.org/packages/90/2c/8af215c0f776415f3590cac4f9086ccefd6fd463befeae41cd4d3f193e5a/pytest_asyncio-1.3.0.tar.gz", hash = "sha256:d7f52f36d231b80ee124cd216ffb19369aa168fc10095013c6b014a34d3ee9e5", size = 50087, upload-time = "2025-11-10T16:07:47.256Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1d/d6/568f370599c794cc97e2f36293e06ee9bd5bd3a2d2eb62525671425d266b/pytest_asyncio-0.23.3-py3-none-any.whl", hash = "sha256:37a9d912e8338ee7b4a3e917381d1c95bfc8682048cb0fbc35baba316ec1faba", size = 17383, upload-time = "2024-01-01T14:03:56.293Z" }, + { url = "https://files.pythonhosted.org/packages/e5/35/f8b19922b6a25bc0880171a2f1a003eaeb93657475193ab516fd87cac9da/pytest_asyncio-1.3.0-py3-none-any.whl", hash = "sha256:611e26147c7f77640e6d0a92a38ed17c3e9848063698d5c93d5aa7aa11cebff5", size = 15075, upload-time = "2025-11-10T16:07:45.537Z" }, ] [[package]] @@ -2228,7 +2228,7 @@ requires-dist = [ { name = "pydash", specifier = "~=8.0" }, { name = "pyinstrument", marker = "extra == 'dev'", specifier = "~=5.0" }, { name = "pytest", marker = "extra == 'test'", specifier = "~=9.0" }, - { name = "pytest-asyncio", marker = "extra == 'test'", specifier = "~=0.23" }, + { name = "pytest-asyncio", marker = "extra == 'test'", specifier = "~=1.1" }, { name = "pytest-cov", marker = "extra == 'test'", specifier = "~=6.2" }, { name = "pytest-env", marker = "extra == 'test'", specifier = "~=1.1" }, { name = "pytest-mock", marker = "extra == 'test'", specifier = "~=3.12" },