MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_partition

Method test_partition

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

Source from the content-addressed store, hash-verified

727 assert_raises(exc.ResourceClosedError, result.all)
728
729 def test_partition(self):
730 result = self._fixture()
731
732 r = []
733 for partition in result.partitions(2):
734 r.append(list(partition))
735 eq_(r, [[(1, 1, 1), (2, 1, 2)], [(1, 3, 2), (4, 1, 2)]])
736
737 eq_(result.all(), [])
738
739 def test_partition_unique_yield_per(self):
740 result = self._fixture()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected