MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_none_many

Method test_scalar_none_many

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

Source from the content-addressed store, hash-verified

829 eq_(list(result), [None, 4, None, None, 4])
830
831 def test_scalar_none_many(self):
832 result = self._fixture(
833 data=[
834 (1, None, 2),
835 (3, 4, 5),
836 (3, None, 5),
837 (3, None, 5),
838 (3, 4, 5),
839 ]
840 )
841
842 result = result.scalars(1)
843
844 eq_(result.fetchmany(3), [None, 4, None])
845 eq_(result.fetchmany(5), [None, 4])
846
847 def test_scalar_none_all(self):
848 result = self._fixture(

Callers

nothing calls this directly

Calls 4

_fixtureMethod · 0.95
eq_Function · 0.90
scalarsMethod · 0.45
fetchmanyMethod · 0.45

Tested by

no test coverage detected