Test the start's failure messages and shapes that mutants survived
CI / tests (pull_request) Successful in 3m42s

This commit is contained in:
Lilleman
2026-11-20 18:03:55 +01:00
parent f40f7eb95c
commit 6bd146395c
4 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -91,6 +91,6 @@ def sprint_refusal(site: str, key: str, board: int, authorization: str, http: Ht
if not isinstance(values, list) or len(sprints) != len(values):
return Failure(f"Jira answered board {board}'s sprints in a shape other than the one it documents")
if len(sprints) != 1:
return Failure(f"board {board}, which `{SPRINT_BOARD}` names, has {len(sprints) or 'no'} active sprint{'s' * (len(sprints) > 1)}, so {key} joins none")
return Failure(f"board {board}, which `{SPRINT_BOARD}` names, has {f"{len(sprints)} active sprints" if sprints else "no active sprint"}, so {key} joins none")
added = http("POST", f"{site}/rest/agile/1.0/sprint/{sprints[0]}/issue", authorization, {"issues": [key]})
return Failure(f"cannot add {key} to the active sprint of board {board}: {added.reason}") if isinstance(added, Failure) else None