MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_partition_yield_per

Method test_partition_yield_per

test/base/test_result.py:749–757  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

747 eq_(result.all(), [])
748
749 def test_partition_yield_per(self):
750 result = self._fixture()
751
752 r = []
753 for partition in result.yield_per(2).partitions():
754 r.append(list(partition))
755 eq_(r, [[(1, 1, 1), (2, 1, 2)], [(1, 3, 2), (4, 1, 2)]])
756
757 eq_(result.all(), [])
758
759 def test_columns(self):
760 result = self._fixture()

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
eq_Function · 0.90
partitionsMethod · 0.45
yield_perMethod · 0.45
appendMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected