diff --git a/mistral/api/controllers/v2/resources.py b/mistral/api/controllers/v2/resources.py index a30af4c5..db49183a 100644 --- a/mistral/api/controllers/v2/resources.py +++ b/mistral/api/controllers/v2/resources.py @@ -213,8 +213,8 @@ class Execution(resource.Resource): "description of workflow execution." params = types.jsontype - "params define workflow type specific parameters. For example, reverse \ - workflow takes one parameter 'task_name' that defines a target task." + ("params define workflow type specific parameters. For example, reverse " + "workflow takes one parameter 'task_name' that defines a target task.") task_execution_id = wtypes.text "reference to the parent task execution" @@ -282,8 +282,8 @@ class Task(resource.Resource): workflow_execution_id = wtypes.text state = wtypes.text - "state can take one of the following values: \ - IDLE, RUNNING, SUCCESS, ERROR, DELAYED" + ("state can take one of the following values: " + "IDLE, RUNNING, SUCCESS, ERROR, DELAYED") state_info = wtypes.text "an optional state information string" diff --git a/mistral/services/expiration_policy.py b/mistral/services/expiration_policy.py index c30c7d90..27d2e8f9 100644 --- a/mistral/services/expiration_policy.py +++ b/mistral/services/expiration_policy.py @@ -86,8 +86,8 @@ def run_execution_expiration_policy(self, ctx): ) db_api.delete_workflow_execution(execution.id) except Exception as e: - msg = "Failed to delete [execution_id=%s]\n %s" \ - % (execution.id, traceback.format_exc(e)) + msg = ("Failed to delete [execution_id=%s]\n %s" + % (execution.id, traceback.format_exc(e))) LOG.warning(msg) finally: auth_ctx.set_ctx(None) diff --git a/mistral_tempest_tests/tests/api/v2/test_action_executions.py b/mistral_tempest_tests/tests/api/v2/test_action_executions.py index 6297e5ac..4065e326 100644 --- a/mistral_tempest_tests/tests/api/v2/test_action_executions.py +++ b/mistral_tempest_tests/tests/api/v2/test_action_executions.py @@ -126,8 +126,9 @@ class ActionExecutionTestsV2(base.TestCase): resp, body = self.client.create_action_execution( { 'name': 'std.http', - 'input': '{{"url": "http://localhost:8989/v2/workflows",\ - "headers": {{"X-Auth-Token": "{}"}}}}'.format(token) + 'input': ('{{"url": "http://localhost:8989/v2/workflows",' + '"headers": {{"X-Auth-Token": "{}"}}}}' + ).format(token) } )