Kill the mutant that always named the review setting
CI / tests (pull_request) Has been cancelled

This commit is contained in:
Lilleman
2026-11-20 13:47:08 +01:00
parent b8fce0113a
commit 31f9360b9c
+4
View File
@@ -315,6 +315,10 @@ class Jira(Case):
self.assertEqual(store.file("ABC-12", "Review api.", "", (REVIEW_LABEL,)), Failure("ABC has no issue type 'Investigation' for an issue under an epic; it has Task, Feature and Chore: name one in `jira-review-type`"))
self.assertEqual(self.jira.issues, [])
def test_names_the_setting_of_a_finding_where_the_project_lacks_its_type(self) -> None:
store = JiraEpic(EPIC, self.env_file, self.jira, to_markdown, to_adf, finding_type="Investigation")
self.assertEqual(store.file("ABC-12", "Count the runs.", "", ()), Failure("ABC has no issue type 'Investigation' for an issue under an epic; it has Task, Feature and Chore: name one in `jira-finding-type`"))
def test_a_filing_jira_fails_or_answers_without_a_key_says_the_issue_may_exist(self) -> None:
for answer, reason in ((Failure("Jira answered 503"), "cannot file the issue under ABC-12: Jira answered 503"), ({"id": "1"}, "Jira answered the new issue without an issue key"), (["ABC-100"], "Jira answered the new issue without an issue key")):
with self.subTest(answer=answer):