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

Method test_bulk_insert_single_record

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

Source from the content-addressed store, hash-verified

411 self._verify_records(data)
412
413 def test_bulk_insert_single_record(self):
414 conn = self.connect()
415 cursor = conn.cursor()
416 data = [(0, "bob", 21, 123)]
417 cursor.executemany(
418 "insert into bulkinsert (id, name, age, height) values (%s,%s,%s,%s)",
419 data,
420 )
421 cursor.execute("commit")
422 self._verify_records(data)
423
424 def test_issue_288(self):
425 """executemany should work with "insert ... on update"""

Callers

nothing calls this directly

Calls 5

_verify_recordsMethod · 0.95
cursorMethod · 0.80
executemanyMethod · 0.80
executeMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected