Kill the mutants of the epic description write
CI / tests (pull_request) Successful in 2m48s

This commit is contained in:
2026-11-18 10:26:23 +01:00
parent 9e47b0d566
commit 0755291112
3 changed files with 39 additions and 3 deletions
@@ -142,6 +142,15 @@ class EpicDescriptionWriteTest(WriteCase):
self.assertEqual(self.jira.puts(), [])
self.assertEqual(self.new_store().read(), "## Goals\n1. **Achieve:** Their goal.\n")
def test_refuses_to_write_over_the_version_of_an_epic_that_had_no_description(self) -> None:
held = self.new_store().held()
assert isinstance(held, Held), held
self.jira.teammate_saves("## Goals\nTheirs.\n")
found = self.new_store(frozenset({"Goals"})).write("## Goals\nMine.\n", held.version)
assert isinstance(found, Failure), found
self.assertIn("someone saved", found.reason)
self.assertEqual(self.jira.puts(), [])
def test_refuses_to_change_goals_or_audience_before_the_human_approves(self) -> None:
held = self.held(GOALS_AND_SCORING)
changes = [