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:433–442  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

431 self._verify_records(data)
432
433 def test_bulk_insert_single_record(self):
434 conn = self.connect()
435 cursor = conn.cursor()
436 data = [(0, "bob", 21, 123)]
437 cursor.executemany(
438 "insert into bulkinsert (id, name, age, height) values (%s,%s,%s,%s)",
439 data,
440 )
441 cursor.execute("commit")
442 self._verify_records(data)
443
444 def test_issue_288(self):
445 """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