Kill the surviving mutants of the blocking-loop check
CI / tests (pull_request) Successful in 3m32s

This commit is contained in:
2026-11-17 06:43:21 +01:00
parent 461b88d4ee
commit c1b278d2ea
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -679,6 +679,11 @@ class Editing(unittest.TestCase):
self.assertEqual(self.edit(34, {"L": "2", "Blocked by": "36"}), Failure("jira:https://acme.atlassian.net/browse/ABC-12: item 34 would be blocked by itself through 35, 36; drop one of the blockers"))
self.assertEqual(self.writes(), [])
def test_the_loop_names_its_items_by_number_not_by_key(self):
self.open += [issue("ABC-9", scores=PROPERTY, blocked_by=("ABC-10",)), issue("ABC-10", scores=PROPERTY, blocked_by=("ABC-34",))]
failure = self.edit(34, {"Blocked by": "9"})
self.assertTrue(failure.reason.endswith("through 9, 10; drop one of the blockers")) # type: ignore[union-attr]
def test_a_loop_the_plan_holds_without_the_issue_does_not_stop_its_edit(self):
self.open[1] = issue("ABC-35", scores=PROPERTY, blocked_by=("ABC-36",))
self.open[2] = issue("ABC-36", scores=PROPERTY, blocked_by=("ABC-35",))