Kill the mutants that survived on the lines the release review changed

This commit is contained in:
2026-11-19 13:44:12 +01:00
parent 2edbde8071
commit 2806a8edc9
19 changed files with 452 additions and 6 deletions
@@ -490,6 +490,14 @@ class Archive(unittest.TestCase):
self.assertIsNone(state.mark_raised(self.root, [a], "2026-10-15T02:00:00Z", replace_file))
self.assertEqual(state.raised(self.root), state.Raised("2026-10-15T01:00:00Z", frozenset({a})))
def test_adds_a_raised_call_after_the_files_text_less_only_the_newlines_that_end_it(self):
call = Call("reports", ("Explore",))
for ending in ("what the human wrote XX", "a line that breaks in markdown ", "a line that ends in a tab\t"):
with self.subTest(ending=ending):
(self.root / state.RAISED).write_text(f"# Routing calls raised\n\n{ending}\n\n\n")
self.assertIsNone(state.mark_raised(self.root, [call], "2026-10-15T00:00:00Z", replace_file))
self.assertEqual((self.root / state.RAISED).read_text(), f"# Routing calls raised\n\n{ending}\n\n- 2026-10-15T00:00:00Z {call.sentence()}\n")
def test_fails_when_it_cannot_keep_the_state(self):
assert_not_root(self)
self.root.chmod(0o555)