Test the names of three items that block each other in a loop
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
This commit is contained in:
@@ -173,6 +173,8 @@ class RankedTest(unittest.TestCase):
|
||||
def test_names_by_their_names_the_items_that_block_each_other_in_a_loop(self) -> None:
|
||||
looped = [dataclasses.replace(item(1, "epic 1 by 9", blocked_by=(2,)), name="ABC-1"), dataclasses.replace(item(2, "epic 1 by 2", blocked_by=(1,)), name="XYZ-1"), item(3, "epic 1 by 1")]
|
||||
self.assertEqual(ranked(looped, "V", EPIC_GOALS, {"billing-api": VOIDED}), Failure("ABC-1 and XYZ-1 block each other in a loop; drop one of the blockers"))
|
||||
three = [item(1, "epic 1 by 9", blocked_by=(3,)), item(2, "epic 1 by 2", blocked_by=(1,)), item(3, "epic 1 by 1", blocked_by=(2,))]
|
||||
self.assertEqual(ranked(three, "V", EPIC_GOALS, {"billing-api": VOIDED}), Failure("item 1, item 2 and item 3 block each other in a loop; drop one of the blockers"))
|
||||
|
||||
def test_a_formula_that_cannot_be_read_fails(self) -> None:
|
||||
self.assertIsInstance(order([item(1, "epic 1 by 9")], {"billing-api": VOIDED}, "V +"), Failure)
|
||||
|
||||
Reference in New Issue
Block a user