MCPcopy
hub / github.com/psycopg/psycopg / _populate

Method _populate

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

544 ]
545
546 def _populate(self):
547 ''' Return a list of sql commands to setup the DB for the fetch
548 tests.
549 '''
550 populate = [
551 "insert into %sbooze values ('%s')" % (self.table_prefix,s)
552 for s in self.samples
553 ]
554 return populate
555
556 def test_fetchmany(self):
557 con = self._connect()

Callers 4

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

Calls

no outgoing calls

Tested by 4

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