MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / setUp

Method setUp

pymysql/tests/test_basic.py:334–352  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 cursor_type = pymysql.cursors.DictCursor
333
334 def setUp(self):
335 super().setUp()
336 self.conn = conn = self.connect()
337
338 # create a table and some data to query
339 self.safe_create_table(
340 conn,
341 "bulkinsert",
342 """\
343CREATE TABLE bulkinsert
344(
345id int,
346name char(20),
347age int,
348height int,
349PRIMARY KEY (id)
350)
351""",
352 )
353
354 def _verify_records(self, data):
355 conn = self.connect()

Callers

nothing calls this directly

Calls 2

safe_create_tableMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected