diff --git a/bin/plan_store/test_jira_epic.py b/bin/plan_store/test_jira_epic.py index 4611484e..0674eda0 100644 --- a/bin/plan_store/test_jira_epic.py +++ b/bin/plan_store/test_jira_epic.py @@ -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":