Skip to content

Commit 5320b5a

Browse files
author
Shailesh Jagannath Padave
committed
Few changes
1 parent 7fd7806 commit 5320b5a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/conductor/client/http/models/workflow_run.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
import six
55

6+
from conductor.client.http.models import Task
7+
8+
terminal_status = ('COMPLETED', 'FAILED', 'TIMED_OUT', 'TERMINATED')
9+
successful_status = ('PAUSED', 'COMPLETED')
10+
running_status = ('RUNNING', 'PAUSED')
11+
612
class WorkflowRun(object):
713
"""NOTE: This class is auto generated by the swagger code generator program.
814

tests/unit/orkes/test_workflow_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_executeWorkflow(self, mock):
8686
startWorkflowReq, "request_id", None, 30
8787
)
8888
mock.assert_called_with(body=startWorkflowReq, request_id="request_id", name=WORKFLOW_NAME, version=1,
89-
wait_until_task_ref=None, wait_for_seconds=30)
89+
wait_until_task_ref=None, wait_for_seconds=30, consistency='DURABLE', return_strategy='TARGET_WORKFLOW')
9090
self.assertEqual(workflowRun, expectedWfRun)
9191

9292
@patch.object(WorkflowResourceApi, 'pause_workflow')

0 commit comments

Comments
 (0)