This commit is contained in:
retoor 2025-11-08 22:41:28 +01:00
parent e77b2d851d
commit 2ad7401226
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
[pytest]
pythonpath = .
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function

View File

@ -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()