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

Method test_no_previous_query

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

Source from the content-addressed store, hash-verified

2873 assert "name" in attributes.instance_state(thing).dict
2874
2875 def test_no_previous_query(self):
2876 Thing = self.classes.Thing
2877
2878 session = fixture_session()
2879 thing = (
2880 session.query(Thing).options(sa.orm.undefer(Thing.name)).first()
2881 )
2882 self._test(thing)
2883
2884 def test_query_twice_with_clear(self):
2885 Thing = self.classes.Thing

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected