Test the fake's rank refusals and a refused rank after the last issue
CI / tests (pull_request) Successful in 3m9s
CI / tests (pull_request) Successful in 3m9s
This commit is contained in:
@@ -235,6 +235,11 @@ class RerankedTest(unittest.TestCase):
|
||||
self.assertEqual(reranked(store, ["ABC-103", "ABC-102", "ABC-101", "ABC-100"]), Failure("cannot rank ABC-101 just before ABC-100: Jira answered 403; the re-rank stopped there, so rank the loop's issues in ABC-12's backlog by hand as ABC-103, ABC-102, ABC-101, ABC-100"))
|
||||
self.assertEqual(store.asked, [("ABC-100", "ABC-103", True), ("ABC-101", "ABC-100", False)])
|
||||
|
||||
def test_a_refused_rank_after_the_last_issue_names_it(self) -> None:
|
||||
store = epic()
|
||||
store.refused = "ABC-100"
|
||||
self.assertEqual(reranked(store, ["ABC-103", "ABC-102", "ABC-101", "ABC-100"]), Failure("cannot rank ABC-100 just after ABC-103: Jira answered 403; the re-rank stopped there, so rank the loop's issues in ABC-12's backlog by hand as ABC-103, ABC-102, ABC-101, ABC-100"))
|
||||
|
||||
def test_a_read_that_fails_ranks_nothing(self) -> None:
|
||||
store = epic()
|
||||
store.fails = "Jira is down"
|
||||
|
||||
Reference in New Issue
Block a user