MCPcopy Index your code
hub / github.com/PyMySQL/mysqlclient / _populate

Method _populate

tests/dbapi20.py:523–530  ·  view source on GitHub ↗

Return a list of sql commands to setup the DB for the fetch tests.

(self)

Source from the content-addressed store, hash-verified

521 ]
522
523 def _populate(self):
524 """Return a list of sql commands to setup the DB for the fetch
525 tests.
526 """
527 populate = [
528 f"insert into {self.table_prefix}booze values ('{s}')" for s in self.samples
529 ]
530 return populate
531
532 def test_fetchmany(self):
533 con = self._connect()

Callers 6

test_fetchmanyMethod · 0.95
test_fetchallMethod · 0.95
test_mixedfetchMethod · 0.95
test_nextsetMethod · 0.95
test_fetchallMethod · 0.80
test_nextsetMethod · 0.80

Calls

no outgoing calls

Tested by 6

test_fetchmanyMethod · 0.76
test_fetchallMethod · 0.76
test_mixedfetchMethod · 0.76
test_nextsetMethod · 0.76
test_fetchallMethod · 0.64
test_nextsetMethod · 0.64