Merge origin/main into item-441
This commit is contained in:
@@ -55,14 +55,14 @@ class Finishing(unittest.TestCase):
|
||||
def test_finishes_an_issue_to_the_status_done(self) -> None:
|
||||
store = MemoryEpic("ABC-12")
|
||||
key = store.file("ABC-12", "Count the runs.", "", ())
|
||||
self.assertIsNone(store.finish(str(key)))
|
||||
self.assertIsNone(store.finish_issue(str(key)))
|
||||
self.assertEqual([(issue.status, issue.done) for issue in store.issues], [("Done", True)])
|
||||
|
||||
def test_refuses_to_finish_an_issue_outside_the_epic_saying_so(self) -> None:
|
||||
self.assertEqual(MemoryEpic("ABC-12").finish("ZZZ-1"), Failure("ZZZ-1 is not one of the child issues of the epic ABC-12, so it cannot be finished"))
|
||||
self.assertEqual(MemoryEpic("ABC-12").finish_issue("ZZZ-1"), Failure("ZZZ-1 is not one of the child issues of the epic ABC-12, so it cannot be finished"))
|
||||
|
||||
def test_fails_to_finish_with_the_reason_given(self) -> None:
|
||||
self.assertEqual(MemoryEpic("ABC-12", fails="Jira is down").finish("ABC-100"), Failure("Jira is down"))
|
||||
self.assertEqual(MemoryEpic("ABC-12", fails="Jira is down").finish_issue("ABC-100"), Failure("Jira is down"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user