refactor: use explicit runtime facade getters

This commit is contained in:
jxxghp
2026-08-24 03:56:54 +08:00
parent 9f76fc9dec
commit 4dd2d7fed2
25 changed files with 154 additions and 98 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
# pylint: disable=no-name-in-module
import asyncio
import json
import threading
@@ -801,7 +803,7 @@ async def test_dashboard_schedule_keeps_agent_tasks(monkeypatch) -> None:
)
]
monkeypatch.setattr(
"app.api.endpoints.dashboard.Scheduler",
"app.api.endpoints.dashboard.get_scheduler",
lambda: SimpleNamespace(list=lambda: scheduler_items),
)