MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_unique_scalars_many_none

Method test_unique_scalars_many_none

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

Source from the content-addressed store, hash-verified

524 eq_(result.fetchmany(2), [])
525
526 def test_unique_scalars_many_none(self):
527 result = self._fixture()
528
529 result = result.unique().scalars(1)
530
531 # this assumes the default fetchmany behavior of all() for
532 # the ListFetchStrategy
533 eq_(result.fetchmany(None), [1, 3])
534 eq_(result.fetchmany(None), [])
535
536 def test_unique_scalars_iterate(self):
537 result = self._fixture()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected