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

Method test_aliased_class

test/orm/test_utils.py:726–731  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

724 is_(bool(path), True)
725
726 def test_aliased_class(self):
727 User = self.classes.User
728 ua = aliased(User)
729 ua_insp = inspect(ua)
730 path = PathRegistry.coerce((ua_insp, ua_insp.mapper.attrs.addresses))
731 assert path.parent.is_aliased_class
732
733 def test_indexed_entity(self):
734 umapper = inspect(self.classes.User)

Callers

nothing calls this directly

Calls 3

aliasedFunction · 0.90
inspectFunction · 0.90
coerceMethod · 0.45

Tested by

no test coverage detected