From 2ad74012264a8620ee639a4e6ec3ed4f34721a9e Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 8 Nov 2025 22:41:28 +0100 Subject: [PATCH] Update. --- pytest.ini | 1 + retoors/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index bdfc0eb..28213f0 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] pythonpath = . asyncio_mode = auto +asyncio_default_fixture_loop_scope = function diff --git a/retoors/main.py b/retoors/main.py index 2f6c0ab..b4952e1 100644 --- a/retoors/main.py +++ b/retoors/main.py @@ -21,7 +21,7 @@ async def setup_services(app: web.Application): app["config_service"] = ConfigService(data_path / "config.json") # Setup aiojobs scheduler - app["scheduler"] = await aiojobs.create_scheduler() + app["scheduler"] = aiojobs.Scheduler() yield # Cleanup aiojobs scheduler await app["scheduler"].close()