← Về thư mục
scripts/test_check_judge_prompt_version.py
- _agent_md · function · L20-L29 — def _agent_md(prompt_body: str, *, with_markers: bool = True) -> str
- _constants_src · function · L32-L36 — def _constants_src(pinned_hash: str) -> str
- _hash_of · function · L39-L45 — def _hash_of(prompt_body: str) -> str: # Compute the expected hash via the PRODUCTION extraction path, not a shadow # copy of the regex — so an extraction bug fails test_clean_fixture_passes # instead of hiding behind a matching wrong answer on both sides.
- CheckJudgePromptVersionTest · class · L48-L86 — class CheckJudgePromptVersionTest(unittest.TestCase)
- _write_root · method · L49-L57 — def _write_root(self, agent_md: str, constants_src: str) -> Path
- test_clean_fixture_passes · method · L59-L61 — def test_clean_fixture_passes(self) -> None
- test_prompt_edit_without_repin_fails · method · L63-L69 — def test_prompt_edit_without_repin_fails(self) -> None: # Prompt changed; pinned hash still points at the OLD prompt → drift → fail.
- test_prompt_edit_with_correct_repin_passes · method · L71-L75 — def test_prompt_edit_with_correct_repin_passes(self) -> None: # The correct bump flow: prompt changed AND hash re-pinned → pass.
- test_missing_markers_errors · method · L77-L82 — def test_missing_markers_errors(self) -> None
- test_missing_pinned_constant_errors · method · L84-L86 — def test_missing_pinned_constant_errors(self) -> None