This commit is contained in:
@@ -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(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, [])
|
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:
|
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")):
|
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):
|
with self.subTest(answer=answer):
|
||||||
|
|||||||
Reference in New Issue
Block a user