MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_joinedload_m2o_ok

Method test_joinedload_m2o_ok

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

Source from the content-addressed store, hash-verified

5591 )
5592
5593 def test_joinedload_m2o_ok(self):
5594 self._eagerload_mappings(user_lazy="joined")
5595 Address = self.classes.Address
5596 sess = fixture_session()
5597 q = sess.query(Address).yield_per(1)
5598 eq_(len(q.all()), 5)
5599
5600 def test_eagerload_opt_disable(self):
5601 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