Log a label among the writes a dry run prints
CI / tests (pull_request) Failing after 2m39s

This commit is contained in:
Lilleman
2026-11-20 09:13:36 +01:00
parent 1b022f4505
commit af2593370a
3 changed files with 24 additions and 0 deletions
+17
View File
@@ -70,6 +70,23 @@ class TheEpicItCopies(unittest.TestCase):
self.assertEqual((real.writes, [each.key for each in real.issues]), ([], ["ABC-20", "ABC-21"]))
self.assertEqual(copy.writes, ["file ABC-new1 under ABC-20: A", "file ABC-new2 under ABC-20: B"])
def test_notes_each_kind_of_write_in_order(self) -> None:
epic = MemoryEpic("ABC-12", [issue("ABC-20"), issue("ABC-21")])
epic.file("ABC-20", "Sub", "d", ("repo:api",), "ABC-21")
epic.add_label("ABC-21", "do-epic-claude")
epic.rank("ABC-21", "ABC-20")
epic.comment("ABC-20", " Why. ")
epic.finish_issue("ABC-21")
epic.close("All done")
self.assertEqual(epic.writes, ["file ABC-102 under ABC-20: Sub, labelled repo:api, blocked by ABC-21", "label ABC-21 with do-epic-claude", "rank ABC-21 before ABC-20", "comment on ABC-20: Why.", "finish ABC-21", "close the epic: All done"])
def test_notes_no_write_that_fails(self) -> None:
epic = MemoryEpic("ABC-12", [issue("ABC-20")])
epic.add_label("ABC-99", "x")
epic.comment("ABC-20", " ")
epic.finish_issue("ABC-99")
self.assertEqual(epic.writes, [])
def test_fails_where_the_real_epic_cannot_be_read(self) -> None:
self.assertEqual(dry_run.seeded(MemoryEpic("ABC-12", [], fails="Jira answered 503")), Failure("Jira answered 503"))