MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

test/orm/test_options.py:1554–1562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1552 )
1553
1554 def go():
1555 sess = fixture_session()
1556 u = (
1557 sess.query(User)
1558 .order_by(User.id)
1559 .options(sa.orm.joinedload(User.adlist))
1560 .filter_by(name="jack")
1561 ).one()
1562 eq_(u.adlist, [self.static.user_address_result[0].addresses[0]])
1563
1564 self.assert_sql_count(testing.db, go, 1)
1565

Callers

nothing calls this directly

Calls 12

fixture_sessionFunction · 0.90
eq_Function · 0.90
joinedloadMethod · 0.80
oneMethod · 0.45
filter_byMethod · 0.45
optionsMethod · 0.45
order_byMethod · 0.45
queryMethod · 0.45
allMethod · 0.45
uniqueMethod · 0.45
scalarsMethod · 0.45
instancesMethod · 0.45

Tested by

no test coverage detected