This commit is contained in:
@@ -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",))
|
||||
|
||||
Reference in New Issue
Block a user