def test_delete_id(self, stub):
     workflow_id = "foo"
     Workflow.delete_id(workflow_id)
     stub.return_value.DeleteWorkflow.assert_called_once_with(
         workflow_pb2.DeleteWorkflowRequest(id=workflow_id),
         timeout=Client.DEFAULT_TIMEOUT,
         metadata=(("x-wf-channel", _channel.__channel__), ),
     )
Beispiel #2
0
 def test_delete_id(self, stub):
     workflow_id = "foo"
     Workflow.delete_id(workflow_id)
     stub.return_value.DeleteWorkflow.assert_called_once_with(
         workflow_pb2.DeleteWorkflowRequest(id=workflow_id),
         timeout=Client.DEFAULT_TIMEOUT,
         metadata=mock.ANY,
     )