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

Method test_loader_options

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

Source from the content-addressed store, hash-verified

1078
1079class GetTest(QueryTest):
1080 def test_loader_options(self):
1081 User = self.classes.User
1082
1083 s = fixture_session()
1084
1085 u1 = s.get(User, 8, options=[joinedload(User.addresses)])
1086 eq_(len(u1.__dict__["addresses"]), 3)
1087
1088 def test_get_composite_pk_keyword_based_no_result(self):
1089 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