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:
2026-11-19 05:20:01 +01:00
parent 587363c3ed
commit 52fb218e97
5 changed files with 17 additions and 8 deletions
+9
View File
@@ -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):