Answer prose round 1: 2 🔴, 5 🟡 (0 misread); reword the issue type text and tests
CI / tests (pull_request) Successful in 3m4s

This commit is contained in:
Lilleman
2026-11-20 13:40:07 +01:00
parent 3d3f8c9a66
commit b8fce0113a
4 changed files with 9 additions and 7 deletions
+5 -3
View File
@@ -123,11 +123,13 @@ class ConfigTest(unittest.TestCase):
assert isinstance(found, DoEpicConfig), found
self.assertEqual((found.unblocking, found.automation_moves), (("Release Ready", "Done"), True))
def test_reads_the_issue_types_of_a_finding_and_a_release_review_which_are_task_where_left_out(self) -> None:
def test_the_issue_types_of_a_finding_and_a_release_review_are_task_where_left_out(self) -> None:
self.write()
found = load(self.home)
assert isinstance(found, DoEpicConfig), found
self.assertEqual((found.finding_type, found.review_type), ("Task", "Task"))
def test_reads_the_issue_types_of_a_finding_and_a_release_review(self) -> None:
self.write(SETTINGS + 'jira-finding-type = "Feature"\njira-review-type = "Chore"\n')
found = load(self.home)
assert isinstance(found, DoEpicConfig), found
@@ -135,10 +137,10 @@ class ConfigTest(unittest.TestCase):
def test_refuses_an_issue_type_that_is_no_name(self) -> None:
for setting, example in (("jira-finding-type", "Feature"), ("jira-review-type", "Chore")):
for value in ("4", '" "'):
for value, shown in (("4", "4"), ('" "', "' '")):
with self.subTest(setting=setting, value=value):
self.write(SETTINGS + f"{setting} = {value}\n")
self.assertIn(f'`{setting}` is {4 if value == "4" else repr(" ")}, not the name Jira shows, such as "{example}"', self.failure())
self.assertIn(f'`{setting}` is {shown}, not the name Jira shows, such as "{example}"', self.failure())
def test_refuses_unblocking_statuses_that_are_no_list_of_names_and_a_switch_that_is_no_boolean(self) -> None:
for value in ('"Done"', '["Done", " "]', "[]", "[1]"):
+1 -1
View File
@@ -291,7 +291,7 @@ class LoadTest(ConfigCase):
(self.home / ".claude-projects" / "acme" / "config.toml").write_text(CLIENT + 'jira-finish-transition = "Mark as done"\njira-finish-status = "Done"\n')
self.assertIn("`jira-finish-transition` is set, so `plan` must name a Jira epic; `jira-finish-status` is set, so `plan` must name a Jira epic", self.failure())
def test_a_jira_plan_may_name_the_issue_type_it_files_findings_as_which_is_task_where_left_out(self) -> None:
def test_a_jira_plan_may_name_the_issue_type_it_files_items_as_which_is_task_where_left_out(self) -> None:
folder = self.write("acme", JIRA_CLIENT)
left_out = load(self.checkout, self.checkout, self.home)
assert isinstance(left_out, ProjectConfig), left_out