MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

test/orm/test_lazy_relations.py:1267–1271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1265 ad3 = sess.get(Address, ad1.id)
1266
1267 def go():
1268 # one lazy load
1269 assert ad2.user.name == "jack"
1270 # no lazy load
1271 assert ad3.user is None
1272
1273 self.assert_sql_count(testing.db, go, 1)
1274

Callers

nothing calls this directly

Calls 5

SessionClass · 0.90
SectionClass · 0.85
create_allMethod · 0.80
commitMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected