Kill the mutants of the move by a transition, and sort the new files' imports
CI / tests (pull_request) Successful in 3m0s
CI / tests (pull_request) Successful in 3m0s
This commit is contained in:
@@ -421,6 +421,8 @@ class Jira(Case):
|
||||
store = self.new_store()
|
||||
key = store.file("ABC-12", "Count the runs.", "", ())
|
||||
self.assertEqual(store.move_issue_by(key, "Release Ready"), Failure(f"{key} has no transition 'Release Ready' from its status, only 'Mark as done' to 'Done'"))
|
||||
self.jira.workflow.append({"id": "11", "name": "Start", "to": {"name": "In Progress", "statusCategory": {"key": "indeterminate"}}})
|
||||
self.assertEqual(store.move_issue_by(key, "Release Ready"), Failure(f"{key} has no transition 'Release Ready' from its status, only 'Mark as done' to 'Done' and 'Start' to 'In Progress'"))
|
||||
self.jira.workflow = []
|
||||
self.assertEqual(store.move_issue_by(key, "Release Ready"), Failure(f"{key} has no transition 'Release Ready' from its status, nor any other the account may make"))
|
||||
self.assertEqual(self.jira.transitioned, [])
|
||||
@@ -437,6 +439,8 @@ class Jira(Case):
|
||||
self.assertEqual(store.move_issue_by(key, "Mark as done"), Failure(f"cannot read {key}'s transitions: Jira answered 503"))
|
||||
self.jira.answers = {("GET", transitions): {"transitions": [{"id": "31"}]}}
|
||||
self.assertEqual(store.move_issue_by(key, "Mark as done"), Failure(f"Jira answered {key}'s transitions in a shape other than the one it documents"))
|
||||
self.jira.answers = {("GET", f"{ISSUES}/{key}?fields=parent,status"): Failure("Jira answered 503")}
|
||||
self.assertEqual(store.move_issue_by(key, "Mark as done"), Failure(f"cannot read {key} to move it: Jira answered 503"))
|
||||
|
||||
def test_a_move_the_workflow_does_not_offer_fails_naming_what_it_offers(self) -> None:
|
||||
store = self.new_store()
|
||||
|
||||
Reference in New Issue
Block a user