Answer stability round 1: 0 🔴, 1 🟡 (0 misread); split the re-rank into the pure rank_moves, rank only just before, as the item says, and name ranking in the README and the protocol
This commit is contained in:
@@ -151,11 +151,11 @@ class EpicStoreContract:
|
||||
read = {issue.key: issue for issue in self.issues(store)}
|
||||
self.assertEqual([read[key].by_loop for key in (ours, theirs, task)], [True, False, True])
|
||||
|
||||
def test_ranks_a_child_issue_just_before_or_just_after_another_and_its_sub_tasks_follow_it(self) -> None:
|
||||
def test_ranks_a_child_issue_just_before_another_and_its_sub_tasks_follow_it(self) -> None:
|
||||
store = self.new_store()
|
||||
first, second, third = (self.filed(store, store.epic_key, f"Item {n}.") for n in range(3))
|
||||
task = self.filed(store, third, "A task.")
|
||||
self.assertEqual(store.rank(third, first), None)
|
||||
self.assertEqual([issue.key for issue in self.issues(store)], [third, task, first, second])
|
||||
self.assertEqual(store.rank(third, second, after=True), None)
|
||||
self.assertEqual([issue.key for issue in self.issues(store)], [first, second, third, task])
|
||||
self.assertEqual(store.rank(first, third), None)
|
||||
self.assertEqual([issue.key for issue in self.issues(store)], [first, third, task, second])
|
||||
|
||||
Reference in New Issue
Block a user