Kill the last surviving mutants of the sandbox and settings of the e2e command
This commit is contained in:
@@ -78,6 +78,14 @@ class EpicMadeTest(unittest.TestCase):
|
||||
self.assertIn("holds no issues", str(left.exception))
|
||||
self.assertEqual(jira.requests[1:], [("POST", "search/jql"), ("DELETE", "issue/SBX-1?deleteSubtasks=true")])
|
||||
|
||||
def test_deletes_the_epic_all_the_same_and_gives_the_reason_when_the_search_for_its_issues_is_refused(self) -> None:
|
||||
jira = JiraStub(refuses="search/jql")
|
||||
with self.assertRaises(Leftover) as left:
|
||||
with epic_made(self.sandbox, "An epic", jira, lambda markdown: {"type": "doc"}):
|
||||
pass
|
||||
self.assertIn("POST https://acme.atlassian.net/rest/api/3/search/jql answered 403", str(left.exception))
|
||||
self.assertEqual(jira.requests[1:], [("POST", "search/jql"), ("DELETE", "issue/SBX-1?deleteSubtasks=true")])
|
||||
|
||||
def test_yields_a_failure_and_deletes_nothing_when_the_epic_cannot_be_made(self) -> None:
|
||||
jira = JiraStub(refuses="/issue")
|
||||
with epic_made(self.sandbox, "An epic", jira, lambda markdown: {"type": "doc"}) as key:
|
||||
|
||||
Reference in New Issue
Block a user