def test_create_event_error(self): self.post("data/import/shotgun/errors", event) errors = self.get("data/import/shotgun/errors") self.assertEqual(len(errors), 2) self.error = DataImportError.get(self.error_id) self.assertEqual(errors[1]["source"], "shotgun") self.assertEqual(errors[1]["event_data"]["project"]["name"], event["project"]["name"])
def delete(self, error_id): try: error = DataImportError.get(error_id) except StatementError: abort(404) if error is None: abort(404) error.delete() return {"deletion_success": True}, 204