fix: load real tree_data for offline diagnosis (video_split_cli)

This commit is contained in:
2026-07-15 22:38:23 -04:00
parent f1b6865861
commit 83056688cf
3 changed files with 71 additions and 11 deletions
+7 -1
View File
@@ -268,6 +268,8 @@ def test_build_diagnosis_deps_model_mismatch_fails_loud(monkeypatch, tmp_path):
with pytest.raises(SystemExit) as exc:
cli.build_diagnosis_deps(
harness_db=tmp_path / "h.db",
store_dir=tmp_path,
video_ids=[],
concurrency=2,
expected_model="deepseek-v4-pro", # 与 env 不一致
)
@@ -288,7 +290,11 @@ def test_build_diagnosis_deps_missing_credentials_fails_loud(monkeypatch, tmp_pa
monkeypatch.setattr(cli, "_DiagLLMSettings", lambda: _EmptySettings())
with pytest.raises(SystemExit):
cli.build_diagnosis_deps(
harness_db=tmp_path / "h.db", concurrency=2, expected_model="deepseek-v4-pro"
harness_db=tmp_path / "h.db",
store_dir=tmp_path,
video_ids=[],
concurrency=2,
expected_model="deepseek-v4-pro",
)