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:
@@ -65,7 +65,10 @@ def deleted_with_children(sandbox: Sandbox, key: str, authorization: str, http:
|
||||
found = searched(sandbox.jira_url, f"the issues of {key}", f"parent = {key}", {"fields": ["summary"]}, authorization, http)
|
||||
# The epic is deleted all the same; the first failure is the one to report.
|
||||
problem = found if isinstance(found, Failure) else None
|
||||
children = [] if isinstance(found, Failure) else [item["key"] for item in found if isinstance(item, dict) and isinstance(item.get("key"), str)]
|
||||
entries = [] if isinstance(found, Failure) else found
|
||||
children = [item["key"] for item in entries if isinstance(item, dict) and isinstance(item.get("key"), str)]
|
||||
if len(children) < len(entries):
|
||||
problem = Failure(f"the search for the issues of {key} answered an entry without a key, so that issue is not deleted")
|
||||
for each in [*children, key]:
|
||||
deleted = http("DELETE", api(sandbox, f"issue/{each}?deleteSubtasks=true"), authorization, None)
|
||||
problem = problem or (deleted if isinstance(deleted, Failure) else None)
|
||||
|
||||
Reference in New Issue
Block a user