MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_single_entity_frozen

Method test_single_entity_frozen

test/orm/test_loading.py:246–253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

244 return s, [u1, u2, u3, u4]
245
246 def test_single_entity_frozen(self):
247 s = fixture_session()
248 User = self.classes.User
249
250 stmt = select(User).where(User.id.in_([7, 8, 9])).order_by(User.id)
251 result = s.execute(stmt)
252 it = loading.merge_frozen_result(s, stmt, result.freeze())
253 eq_([x.id for x in it().scalars()], [7, 8, 9])
254
255 def test_single_column_frozen(self):
256 User = self.classes.User

Callers

nothing calls this directly

Calls 9

fixture_sessionFunction · 0.90
selectFunction · 0.90
eq_Function · 0.90
order_byMethod · 0.45
whereMethod · 0.45
in_Method · 0.45
executeMethod · 0.45
freezeMethod · 0.45
scalarsMethod · 0.45

Tested by

no test coverage detected