MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_join_no_clear

Method test_join_no_clear

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

Source from the content-addressed store, hash-verified

2945 self._test(thing)
2946
2947 def test_join_no_clear(self):
2948 Thing, Human = self.classes.Thing, self.classes.Human
2949
2950 session = fixture_session()
2951 result = ( # noqa
2952 session.query(Human).add_entity(Thing).join(Human.thing).first()
2953 )
2954 thing = (
2955 session.query(Thing).options(sa.orm.undefer(Thing.name)).first()
2956 )
2957 self._test(thing)

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected