MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_gen_path_attr_entity

Method test_gen_path_attr_entity

test/orm/test_options.py:127–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 )
126
127 def test_gen_path_attr_entity(self):
128 User = self.classes.User
129 Address = self.classes.Address
130
131 ll = Load(User)
132
133 eq_(
134 strategy_options._AttributeStrategyLoad.create(
135 ll.path,
136 User.addresses,
137 ("strategy", True),
138 "relationship",
139 {},
140 True,
141 ).path,
142 self._make_path_registry([User, "addresses", Address]),
143 )
144
145 def test_gen_path_attr_column(self):
146 User = self.classes.User

Callers

nothing calls this directly

Calls 4

LoadClass · 0.90
eq_Function · 0.90
_make_path_registryMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected