Test the start's failure messages and shapes that mutants survived
CI / tests (pull_request) Successful in 3m42s

This commit is contained in:
Lilleman
2026-11-20 18:03:55 +01:00
parent f40f7eb95c
commit 6bd146395c
4 changed files with 23 additions and 3 deletions
+4
View File
@@ -47,6 +47,10 @@ class Failing(unittest.TestCase):
down = Failure("Jira is down")
self.assertEqual((store.read(), store.file("ABC-12", "Count the runs.", "", ()), store.add_label("ABC-100", "api"), store.comment("ABC-100", "Hello."), store.rank("ABC-100", "ABC-101")), (down,) * 5)
def test_a_start_fails_with_the_reason_given_and_one_outside_the_epic_says_so(self) -> None:
self.assertEqual(MemoryEpic("ABC-12", fails="Jira is down").start_issue("ABC-100"), Failure("Jira is down"))
self.assertEqual(MemoryEpic("ABC-12").start_issue("ABC-100"), Failure("ABC-100 is not one of the child issues of the epic ABC-12, so it cannot be started"))
class Blocking(unittest.TestCase):
def test_refuses_a_blocker_that_is_an_issue_of_another_epic(self) -> None: