fix: load real tree_data for offline diagnosis (video_split_cli)
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user