Answer stability round 2: 0 🔴, 2 🟡 (0 misread); stopped the timeout test's sleep at once, dropped a duplicate test, reported a found issue without a key
This commit is contained in:
@@ -66,6 +66,15 @@ class EpicMadeTest(unittest.TestCase):
|
||||
self.assertEqual(jira.bodies[2], {"jql": "parent = SBX-1", "fields": ["summary"], "maxResults": 100, "nextPageToken": "more"})
|
||||
self.assertEqual([url for method, url in jira.requests if method == "DELETE"], [f"issue/SBX-{n}?deleteSubtasks=true" for n in (2, 3, 1)])
|
||||
|
||||
def test_deletes_the_rest_and_says_so_when_a_found_issue_has_no_key(self) -> None:
|
||||
jira = JiraStub()
|
||||
jira.search_answer = {"issues": [{"key": "SBX-2"}, {"summary": "no key"}]}
|
||||
with self.assertRaises(Leftover) as left:
|
||||
with epic_made(self.sandbox, "An epic", jira, lambda markdown: {"type": "doc"}):
|
||||
pass
|
||||
self.assertIn("without a key", str(left.exception))
|
||||
self.assertEqual([url for method, url in jira.requests if method == "DELETE"], ["issue/SBX-2?deleteSubtasks=true", "issue/SBX-1?deleteSubtasks=true"])
|
||||
|
||||
def test_deletes_them_when_the_block_raises(self) -> None:
|
||||
jira = JiraStub()
|
||||
with self.assertRaises(ZeroDivisionError):
|
||||
|
||||
Reference in New Issue
Block a user