MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_gen_path_attr_column

Method test_gen_path_attr_column

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

Source from the content-addressed store, hash-verified

143 )
144
145 def test_gen_path_attr_column(self):
146 User = self.classes.User
147
148 ll = Load(User)
149 eq_(
150 strategy_options._AttributeStrategyLoad.create(
151 ll.path,
152 User.name,
153 ("strategy", True),
154 "column",
155 {},
156 True,
157 ).path,
158 self._make_path_registry([User, "name"]),
159 )
160
161 def test_gen_path_invalid_from_col(self):
162 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