MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_mappings_with_columns

Method test_mappings_with_columns

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

Source from the content-addressed store, hash-verified

802 )
803
804 def test_mappings_with_columns(self):
805 result = self._fixture()
806
807 m1 = result.mappings().columns("b", "c")
808
809 eq_(m1.fetchmany(2), [{"b": 1, "c": 1}, {"b": 1, "c": 2}])
810
811 # no slice here
812 eq_(result.fetchone(), (1, 3, 2))
813
814 # still slices
815 eq_(m1.fetchone(), {"b": 1, "c": 2})
816
817 def test_scalar_none_iterate(self):
818 result = self._fixture(

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
eq_Function · 0.90
columnsMethod · 0.45
mappingsMethod · 0.45
fetchmanyMethod · 0.45
fetchoneMethod · 0.45

Tested by

no test coverage detected