def FlowHasBeenStarted(): handler = api_flow.ApiListFlowsHandler() flows = handler.Handle(api_flow.ApiListFlowsArgs( client_id=self.client_id, top_flows_only=True), context=api_call_context.ApiCallContext( username=self.test_username)).items return flows[0] if len(flows) == 1 else None
def ListFlows(self, args, token=None): return api_flow.ApiListFlowsHandler()
def ListFlows(self, args, context=None): return api_flow.ApiListFlowsHandler()
def _ListFlows(client_id: str, creator: str): handler = api_flow.ApiListFlowsHandler() return handler.Handle( api_flow.ApiListFlowsArgs(client_id=client_id, top_flows_only=True), context=api_call_context.ApiCallContext(username=creator)).items