This commit is contained in:
root
2026-05-17 04:31:59 +00:00
parent 75a0ca4e31
commit 07aa02bca6
51 changed files with 1322 additions and 435 deletions

View File

@@ -33,6 +33,9 @@ class HubRoutesTests(unittest.TestCase):
backend = type("StubBackend", (), {})()
backend.mode = "local"
backend.ensure_mode = AsyncMock()
backend.process_infos = AsyncMock(
return_value={"youtube": {"process_status": "not_found", "out_path": None, "err_path": None, "pid": 0}}
)
backend.parse_pm2_describe = AsyncMock(return_value={"process_status": "not_found", "out_path": None, "err_path": None})
backend.live_ffmpeg_pids = AsyncMock(return_value=[])
configure_hub(backend, [{"pm2": "youtube", "label": "YouTube", "script": "youtube.py"}])