MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

safe_create_tableMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected