Test the start's failure messages and shapes that mutants survived
CI / tests (pull_request) Successful in 3m42s
CI / tests (pull_request) Successful in 3m42s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user