Check that a refused search is reported as the refusal
This commit is contained in:
@@ -84,6 +84,7 @@ class EpicMadeTest(unittest.TestCase):
|
||||
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.assertNotIn("holds no issues", 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:
|
||||
|
||||
Reference in New Issue
Block a user