Write a Jira epic's description by section, and change its Goals and Audience only once the human approves #595

Merged
lilleman merged 10 commits from item-402 into main 2026-11-18 11:59:52 +01:00
Showing only changes of commit 5d4c6b3237 - Show all commits
+8 -3
View File
@@ -73,9 +73,9 @@ class EpicDescriptionTest(unittest.TestCase):
for markdown in (Refused(0, Failure("an unsupported node")), Failure("docker is not running")):
with self.subTest(markdown):
self.markdown = markdown
found = self.store().read()
assert isinstance(found, Failure), found
self.assertIn("ABC-12", found.reason)
for found in (self.store().read(), self.store().held()):
assert isinstance(found, Failure), found
self.assertIn("ABC-12", found.reason)
def test_missing_credentials_fail(self) -> None:
self.env.unlink()
@@ -175,6 +175,11 @@ class EpicDescriptionWriteTest(WriteCase):
self.assertIn("## Goals", found.reason)
self.assertEqual(self.jira.puts(), [])
def test_the_version_does_not_depend_on_the_order_of_the_documents_keys(self) -> None:
held = self.held("## Scoring\nValue.\n")
self.jira.description = dict(reversed(list(fake_adf("## Scoring\nValue.\n").items())))
self.assertEqual(self.new_store().held(), held)
def test_refuses_to_write_where_a_teammate_saved_a_change_the_markdown_does_not_show(self) -> None:
held = self.held("## Scoring\nValue.\n")
self.jira.description = {**fake_adf("## Scoring\nValue.\n"), "localId": "teammate"}