MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_insp_column_prop

Method test_insp_column_prop

test/orm/test_inspect.py:212–218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210 is_(prop._parententity, inspect(ua))
211
212 def test_insp_column_prop(self):
213 User = self.classes.User
214 prop = inspect(User.name)
215 is_(prop, User.name)
216
217 is_(prop.parent, class_mapper(User))
218 assert not hasattr(prop, "mapper")
219
220 def test_insp_aliased_column_prop(self):
221 User = self.classes.User

Callers

nothing calls this directly

Calls 3

inspectFunction · 0.90
is_Function · 0.90
class_mapperFunction · 0.90

Tested by

no test coverage detected