MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_set_strat_ent

Method test_set_strat_ent

test/orm/test_options.py:211–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 )
210
211 def test_set_strat_ent(self):
212 User = self.classes.User
213
214 l1 = Load(User)
215 l2 = l1.joinedload(User.addresses)
216
217 s = fixture_session()
218 q1 = s.query(User).options(l2)
219 attr = q1._compile_context().attributes
220
221 eq_(
222 attr[("loader", self._make_path([User, "addresses"]))],
223 l2.context[0],
224 )
225
226 def test_set_strat_col(self):
227 User = self.classes.User

Callers

nothing calls this directly

Calls 8

LoadClass · 0.90
fixture_sessionFunction · 0.90
eq_Function · 0.90
joinedloadMethod · 0.80
_compile_contextMethod · 0.80
_make_pathMethod · 0.80
optionsMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected