Tell the three controls apart in the replay test
This commit is contained in:
@@ -247,7 +247,7 @@ class Main(unittest.TestCase):
|
||||
return code, out.getvalue(), err.getvalue()
|
||||
|
||||
def test_without_claude_md_replays_each_round_three_times_with_it_and_once_without_on_the_project_rung(self):
|
||||
finds = iter(([0, 1], [0], [1], [1]))
|
||||
finds = iter(([0, 1], [0], [0, 1], [1]))
|
||||
code, out, err = self.run_main(["stability", "claude-opus-5-5", "--omit-claude-md"], lambda rung: {"found": next(finds)})
|
||||
self.assertEqual(code, 0, err)
|
||||
self.assertEqual([rung for rung, *_ in self.reviews], [REFERENCE] * 4)
|
||||
@@ -255,7 +255,7 @@ class Main(unittest.TestCase):
|
||||
self.assertEqual([prompt.startswith(context) for *_, prompt, _ in self.reviews], [False, False, False, True])
|
||||
self.assertEqual(out, (
|
||||
f"Replayed 1 stability rounds of claude-opus-5-5 projects, which hold 2 🔴 and 🟡 findings, four times on {REFERENCE}: three with CLAUDE.md, one without.\n"
|
||||
"With CLAUDE.md the reviewer found 2, 1 and 1 of them. Each missed 0, 1 and 1 of the findings the other two found.\n"
|
||||
"With CLAUDE.md the reviewer found 2, 1 and 2 of them. Each missed 0, 1 and 0 of the findings the other two found.\n"
|
||||
"Without CLAUDE.md it found 1 of them, and missed 1 of the findings the first two found:\n"
|
||||
f" {self.checkout} 2026-10-14T10:00:00Z: 🔴 a.txt:1 wrong\n"
|
||||
"It passes: 1 missed is no more than the most a replay with CLAUDE.md missed, 1.\n"
|
||||
|
||||
Reference in New Issue
Block a user