MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_indexed_entity

Method test_indexed_entity

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

Source from the content-addressed store, hash-verified

715 assert path.parent.is_aliased_class
716
717 def test_indexed_entity(self):
718 umapper = inspect(self.classes.User)
719 amapper = inspect(self.classes.Address)
720 path = PathRegistry.coerce(
721 (
722 umapper,
723 umapper.attrs.addresses,
724 amapper,
725 amapper.attrs.email_address,
726 )
727 )
728 is_(path[0], umapper)
729 is_(path[2], amapper)
730
731 def test_indexed_key_token(self):
732 umapper = inspect(self.classes.User)

Callers

nothing calls this directly

Calls 3

inspectFunction · 0.90
is_Function · 0.90
coerceMethod · 0.45

Tested by

no test coverage detected