Answer stability round 1: 0 🔴, 4 🟡 (0 misread); keep goals in Jira to projects whose plan is there, test the reviewer header's Jira read, drop the repeated premises tests

This commit is contained in:
2026-11-14 21:27:23 +01:00
parent e38e45579f
commit 3a2d72a007
5 changed files with 26 additions and 40 deletions
+7 -3
View File
@@ -117,11 +117,11 @@ class LoadTest(ConfigCase):
config.unlink()
def test_goals_and_audience_spelt_as_a_jira_epic_is_no_path(self) -> None:
self.write("acme", CLIENT.replace("folder:goals.md", JIRA_PLAN) + 'env-file = "~/acme.env"\n')
self.write("acme", JIRA_CLIENT.replace("folder:goals.md", "jira:https://acme.atlassian.net/browse/ABC-7"))
found = load(self.checkout, self.checkout, self.home)
assert isinstance(found, ProjectConfig), found
self.assertEqual((found.goals_epic, found.epic), (Epic("https://acme.atlassian.net", "ABC-12"), None))
self.assertEqual(found.places["goals-and-audience"], JIRA_PLAN)
self.assertEqual(found.goals_epic, Epic("https://acme.atlassian.net", "ABC-7"))
self.assertEqual(found.places["goals-and-audience"], "jira:https://acme.atlassian.net/browse/ABC-7")
self.assertEqual(tuple(found.places), SETTINGS)
self.assertNotIn("goals-and-audience", found.paths)
@@ -131,6 +131,10 @@ class LoadTest(ConfigCase):
assert isinstance(found, ProjectConfig), found
self.assertEqual(found.goals_epic, found.epic)
def test_goals_in_jira_need_the_plan_in_jira(self) -> None:
self.write("acme", CLIENT.replace("folder:goals.md", JIRA_PLAN) + 'env-file = "~/acme.env"\n')
self.assertIn("`goals-and-audience` names a Jira epic, so `plan` must name one too", self.failure())
def test_goals_kept_as_a_file_have_no_epic(self) -> None:
folder = self.write("acme", CLIENT)
found = load(self.checkout, self.checkout, self.home)