MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_freeze

Method test_freeze

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

Source from the content-addressed store, hash-verified

937 eq_(result.first(), None)
938
939 def test_freeze(self):
940 result = self._fixture()
941
942 frozen = result.freeze()
943
944 r1 = frozen()
945 eq_(r1.fetchall(), [(1, 1, 1), (2, 1, 2), (1, 3, 2), (4, 1, 2)])
946 eq_(r1.fetchall(), [])
947
948 r2 = frozen()
949 eq_(r1.fetchall(), [])
950 eq_(r2.fetchall(), [(1, 1, 1), (2, 1, 2), (1, 3, 2), (4, 1, 2)])
951 eq_(r2.fetchall(), [])
952
953 def test_columns_unique_freeze(self):
954 result = self._fixture()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected