mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
refactor: use explicit runtime facade getters
This commit is contained in:
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user