MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_fetchmany

Method test_fetchmany

test/sql/test_resultset.py:624–635  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

622 )
623
624 def test_fetchmany(self, connection):
625 users = self.tables.users
626
627 connection.execute(
628 users.insert(),
629 [{"user_id": i, "user_name": "n%d" % i} for i in range(7, 15)],
630 )
631 r = connection.execute(users.select())
632 rows = []
633 for row in r.fetchmany(size=2):
634 rows.append(row)
635 eq_(len(rows), 2)
636
637 @testing.requires.arraysize
638 def test_fetchmany_arraysize_default(self, connection):

Callers

nothing calls this directly

Calls 6

eq_Function · 0.90
executeMethod · 0.45
insertMethod · 0.45
selectMethod · 0.45
fetchmanyMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected