diff --git a/tests/test_ticker.py b/tests/test_ticker.py index f3d438b..6f75390 100644 --- a/tests/test_ticker.py +++ b/tests/test_ticker.py @@ -129,8 +129,11 @@ class TestScanTasks: asyncio.run(run()) def test_scan_empty_project(self, registry, data_root): - """空项目的 tick 返回 ok + 空状态""" + """有 DB 但无任务的项目 tick 返回 ok + 空状态""" registry.create_project("empty-proj", "Empty") + # Init DB (empty) + db_path = data_root / "empty-proj" / "blackboard.db" + Blackboard(db_path) # creates tables ticker = Ticker(registry, tick_interval=30) async def run():