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

Method test_fetchmany_arraysize_set

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

Source from the content-addressed store, hash-verified

650
651 @testing.requires.arraysize
652 def test_fetchmany_arraysize_set(self, connection):
653 users = self.tables.users
654
655 connection.execute(
656 users.insert(),
657 [{"user_id": i, "user_name": "n%d" % i} for i in range(7, 15)],
658 )
659 r = connection.execute(users.select())
660 r.cursor.arraysize = 4
661 rows = list(r.fetchmany())
662 eq_(len(rows), 4)
663
664 def test_column_slices(self, connection):
665 users = self.tables.users

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected