← Về thư mục
tests/test_scientific_review_service.py
- _cfg · function · L14-L21 — def _cfg(**flags)
- _llm · function · L24-L33 — def _llm( provider="openai", model="reviewer-model", base_url="https://review.example/v1" )
- _pass_chat · function · L36-L40 — def _pass_chat(messages, cfg, **kwargs)
- _snapshot · function · L43-L80 — def _snapshot(**overrides)
- test_auto_fix_same_model_is_unavailable_without_inference · function · L83-L102 — def test_auto_fix_same_model_is_unavailable_without_inference()
- chat_call · function · L86-L88 — def chat_call(messages, cfg, **kwargs)
- test_review_only_may_use_same_model_independent_session · function · L105-L117 — def test_review_only_may_use_same_model_independent_session()
- test_cancel_after_failed_review_attempt_skips_the_retry · function · L120-L142 — def test_cancel_after_failed_review_attempt_skips_the_retry()
- failing_chat · function · L124-L128 — def failing_chat(messages, cfg, **kwargs)
- test_numeric_mismatch_is_a_high_finding_even_if_model_passes · function · L145-L162 — def test_numeric_mismatch_is_a_high_finding_even_if_model_passes()
- test_forged_evidence_ref_cannot_pass · function · L165-L195 — def test_forged_evidence_ref_cannot_pass()
- forged_chat · function · L166-L184 — def forged_chat(messages, cfg, **kwargs)
- test_shadow_after_turn_records_step_and_includes_plan · function · L198-L252 — def test_shadow_after_turn_records_step_and_includes_plan(tmp_path)
- test_gateway_stage3_hook_does_not_skip_plans · function · L255-L263 — def test_gateway_stage3_hook_does_not_skip_plans()
- test_shadow_persists_review_audit_when_stage2_storage_is_on · function · L266-L310 — def test_shadow_persists_review_audit_when_stage2_storage_is_on(tmp_path)
- test_turn_run_starts_before_candidate_and_review_reuses_frozen_selection · function · L313-L381 — def test_turn_run_starts_before_candidate_and_review_reuses_frozen_selection(tmp_path)
- test_re_review_open_lost_response_returns_durable_unavailable_result · function · L384-L449 — def test_re_review_open_lost_response_returns_durable_unavailable_result( tmp_path, monkeypatch )
- lost_open_response · function · L404-L406 — def lost_open_response(**kwargs)
- test_flag_off_is_inert · function · L452-L469 — def test_flag_off_is_inert(tmp_path)
- test_evaluate_without_run_id_does_not_meter_review_budget · function · L472-L489 — def test_evaluate_without_run_id_does_not_meter_review_budget()
- chat · function · L475-L477 — def chat(messages, cfg, **kwargs)