MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_join_with_clear

Method test_join_with_clear

test/orm/test_deferred.py:2934–2945  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2932 self._test(thing)
2933
2934 def test_join_with_clear(self):
2935 Thing, Human = self.classes.Thing, self.classes.Human
2936
2937 session = fixture_session()
2938 result = ( # noqa
2939 session.query(Human).add_entity(Thing).join(Human.thing).first()
2940 )
2941 session.expunge_all()
2942 thing = (
2943 session.query(Thing).options(sa.orm.undefer(Thing.name)).first()
2944 )
2945 self._test(thing)
2946
2947 def test_join_no_clear(self):
2948 Thing, Human = self.classes.Thing, self.classes.Human

Callers

nothing calls this directly

Calls 9

_testMethod · 0.95
fixture_sessionFunction · 0.90
add_entityMethod · 0.80
undeferMethod · 0.80
firstMethod · 0.45
joinMethod · 0.45
queryMethod · 0.45
expunge_allMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected