MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_loader_options

Method test_loader_options

test/orm/test_query.py:1075–1081  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1073
1074class GetTest(QueryTest):
1075 def test_loader_options(self):
1076 User = self.classes.User
1077
1078 s = fixture_session()
1079
1080 u1 = s.get(User, 8, options=[joinedload(User.addresses)])
1081 eq_(len(u1.__dict__["addresses"]), 3)
1082
1083 def test_get_composite_pk_keyword_based_no_result(self):
1084 CompositePk = self.classes.CompositePk

Callers

nothing calls this directly

Calls 4

fixture_sessionFunction · 0.90
joinedloadFunction · 0.90
eq_Function · 0.90
getMethod · 0.45

Tested by

no test coverage detected