MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_columns_freeze

Method test_columns_freeze

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

Source from the content-addressed store, hash-verified

971 eq_(r1.fetchall(), [(1, 1), (1, 2), (3, 2)])
972
973 def test_columns_freeze(self):
974 result = self._fixture()
975
976 result = result.columns("b", "c")
977
978 frozen = result.freeze()
979
980 r1 = frozen()
981 eq_(r1.fetchall(), [(1, 1), (1, 2), (3, 2), (1, 2)])
982
983 r2 = frozen().unique()
984 eq_(r2.fetchall(), [(1, 1), (1, 2), (3, 2)])
985
986 def test_scalars_freeze(self):
987 result = self._fixture()

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
eq_Function · 0.90
columnsMethod · 0.45
freezeMethod · 0.45
fetchallMethod · 0.45
uniqueMethod · 0.45

Tested by

no test coverage detected