test(question_gen): drop tests for removed calibrate pairing validator
This commit is contained in:
@@ -27,7 +27,6 @@ from tools.generate_questions import (
|
||||
_rebuild_embedding_pool,
|
||||
_save_progress,
|
||||
_select_exemplars,
|
||||
_validate_calibrate_args,
|
||||
)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -379,24 +378,6 @@ class TestCalibrateJudgment:
|
||||
class TestCalibrateIntegration:
|
||||
"""calibrate 辅助函数集成测试。"""
|
||||
|
||||
def test_baseline_params_must_be_paired(self) -> None:
|
||||
"""baseline 参数必须成对出现。"""
|
||||
with pytest.raises(ValueError, match="成对"):
|
||||
_validate_calibrate_args(baseline_db="some.db", baseline_run_id=None)
|
||||
|
||||
def test_baseline_params_both_none_ok(self) -> None:
|
||||
"""两个参数都为 None 不报错。"""
|
||||
_validate_calibrate_args(baseline_db=None, baseline_run_id=None)
|
||||
|
||||
def test_baseline_params_both_provided_ok(self) -> None:
|
||||
"""两个参数都提供不报错。"""
|
||||
_validate_calibrate_args(baseline_db="some.db", baseline_run_id="run-001")
|
||||
|
||||
def test_baseline_run_id_only_raises(self) -> None:
|
||||
"""只提供 run_id 也报错。"""
|
||||
with pytest.raises(ValueError, match="成对"):
|
||||
_validate_calibrate_args(baseline_db=None, baseline_run_id="run-001")
|
||||
|
||||
def test_has_fail_returns_exit_code_1(self) -> None:
|
||||
"""存在 FAIL 时返回退出码 1。"""
|
||||
verdicts = {"Object Recognition": "PASS", "Action Reasoning": "FAIL"}
|
||||
|
||||
Reference in New Issue
Block a user