From a9702c1f2f9c231953094b0fcc8432c22368d0cc Mon Sep 17 00:00:00 2001 From: Lilleman Date: Fri, 20 Nov 2026 12:40:02 +0100 Subject: [PATCH] Kill the mutants of the issue type settings --- bin/do_epic/config.py | 3 +-- bin/plan_store/test_stores.py | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/do_epic/config.py b/bin/do_epic/config.py index 08e380b5..8b89ef80 100644 --- a/bin/do_epic/config.py +++ b/bin/do_epic/config.py @@ -165,6 +165,5 @@ def load(home: pathlib.Path, ladder_file: pathlib.Path = SHIPPED) -> DoEpicConfi assert isinstance(statuses, list) template = values.get(SUB_TASK_SUMMARY) assert template is None or isinstance(template, str) - finding_type, review_type = (values.get(name, DEFAULT_ISSUE_TYPE) for name in ISSUE_TYPES) - assert isinstance(finding_type, str) and isinstance(review_type, str) + finding_type, review_type = (str(values.get(name, DEFAULT_ISSUE_TYPE)) for name in ISSUE_TYPES) return DoEpicConfig(folder, url, env_file, clone_folder, language, model, rule, finish_of(values), types.MappingProxyType(labels), tuple(statuses), values.get(AUTOMATION_MOVES) is True, template, finding_type, review_type) diff --git a/bin/plan_store/test_stores.py b/bin/plan_store/test_stores.py index f75c7327..e99a2173 100644 --- a/bin/plan_store/test_stores.py +++ b/bin/plan_store/test_stores.py @@ -210,6 +210,10 @@ class Store(unittest.TestCase): picked = stores.store(self.config(epic=epic, env_file=pathlib.Path("/secrets/acme.env"), jira_scoring=JiraScoring("V", 1))) self.assertEqual(picked, JiraPlan(epic, pathlib.Path("/secrets/acme.env"), picked.http, scoring=picked.scoring)) + def test_an_epic_files_an_item_as_the_issue_type_the_config_names(self): + picked = stores.store(self.config(epic=Epic("https://acme.atlassian.net", "ABC-12"), env_file=pathlib.Path("/secrets/acme.env"), jira_finding_type="Feature", jira_scoring=JiraScoring("V", 1))) + self.assertEqual(picked.finding_type, "Feature") + def test_an_epic_finishes_an_item_as_the_config_says(self): finish = Finish("Mark as done", "Done") picked = stores.store(self.config(epic=Epic("https://acme.atlassian.net", "ABC-12"), env_file=pathlib.Path("/secrets/acme.env"), jira_finish=finish, jira_scoring=JiraScoring("V", 1)))