MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_aliased_class

Method test_aliased_class

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

Source from the content-addressed store, hash-verified

708 is_(bool(path), True)
709
710 def test_aliased_class(self):
711 User = self.classes.User
712 ua = aliased(User)
713 ua_insp = inspect(ua)
714 path = PathRegistry.coerce((ua_insp, ua_insp.mapper.attrs.addresses))
715 assert path.parent.is_aliased_class
716
717 def test_indexed_entity(self):
718 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