MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_joinedload_m2o_ok

Method test_joinedload_m2o_ok

test/orm/test_query.py:5521–5526  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5519 )
5520
5521 def test_joinedload_m2o_ok(self):
5522 self._eagerload_mappings(user_lazy="joined")
5523 Address = self.classes.Address
5524 sess = fixture_session()
5525 q = sess.query(Address).yield_per(1)
5526 eq_(len(q.all()), 5)
5527
5528 def test_eagerload_opt_disable(self):
5529 self._eagerload_mappings()

Callers

nothing calls this directly

Calls 6

_eagerload_mappingsMethod · 0.95
fixture_sessionFunction · 0.90
eq_Function · 0.90
yield_perMethod · 0.45
queryMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected