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

Method test_bulk_insert_single_record

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

Source from the content-addressed store, hash-verified

410 self._verify_records(data)
411
412 def test_bulk_insert_single_record(self):
413 conn = self.connect()
414 cursor = conn.cursor()
415 data = [(0, "bob", 21, 123)]
416 cursor.executemany(
417 "insert into bulkinsert (id, name, age, height) values (%s,%s,%s,%s)",
418 data,
419 )
420 cursor.execute("commit")
421 self._verify_records(data)
422
423 def test_issue_288(self):
424 """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