MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / _init_prepare

Method _init_prepare

test-common/functiontest/testlib/job_helper.py:227–243  ·  view source on GitHub ↗

:return:

(self)

Source from the content-addressed store, hash-verified

225 it.next()
226
227 def _init_prepare(self):
228 """
229
230 :return:
231 """
232 self.taskList = []
233
234 proc = Process()
235 for cmd in ['CMD_TABLE_STOP', 'CMD_TABLE_START']:
236 cmd = util.get(cmd)
237 proc.run(cmd)
238 self.rtidbClient = RtidbClient(endpoint=util.get('ENDPOINT'))
239 self.append(self.rtidbClient.drop_table)
240 self.run(failonerror=False, autoidentity=False)
241
242 self.taskList = []
243 self.pk = ''.join(random.sample(string.lowercase+string.digits, 20))
244
245 def _common_check(self, autoidentity, retStatus, logcheck):
246 """

Callers 1

__init__Method · 0.95

Calls 3

runMethod · 0.95
appendMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected