Answer stability round 1: 1 🔴, 1 🟡 (1 misread); the plan store's fake refuses an edit with neither fields nor update, and 0.15.1 is cut off v0.15.0, never from main
This commit is contained in:
@@ -509,9 +509,11 @@ class Editing(unittest.TestCase):
|
||||
self.unlinked: object = None
|
||||
|
||||
def http(self, method: str, url: str, authorization: str, body: object) -> object:
|
||||
"""Stands in for Jira: answers the epic, self.versions for the project's Fix Versions, self.open to the search, self.edited to an edit, self.commented to a new comment, self.linked to a new link and self.unlinked to a deleted one."""
|
||||
"""Stands in for Jira: answers the epic, self.versions for the project's Fix Versions, self.open to the search, self.edited to an edit, self.commented to a new comment, self.linked to a new link and self.unlinked to a deleted one. Like Jira, it refuses an edit of an issue that holds neither fields nor update."""
|
||||
self.calls.append((method, url, body))
|
||||
assert authorization == AUTHORIZATION
|
||||
if method == "PUT" and "/properties/" not in url and isinstance(body, dict) and "fields" not in body and "update" not in body:
|
||||
return Failure("Jira answered 400: one of 'fields' or 'update' required")
|
||||
if method == "PUT":
|
||||
return self.edited
|
||||
if method == "DELETE":
|
||||
|
||||
Reference in New Issue
Block a user