MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / _populate

Method _populate

tests/dbapi20.py:530–538  ·  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

528 ]
529
530 def _populate(self):
531 ''' Return a list of sql commands to setup the DB for the fetch
532 tests.
533 '''
534 populate = [
535 "insert into %sbooze values ('%s')" % (self.table_prefix,s)
536 for s in self.samples
537 ]
538 return populate
539
540 def test_fetchmany(self):
541 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