diff --git a/bin/do_epic/backend/test_jira.py b/bin/do_epic/backend/test_jira.py index 68d92033..45d3437b 100644 --- a/bin/do_epic/backend/test_jira.py +++ b/bin/do_epic/backend/test_jira.py @@ -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):