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

Method test_indexed_entity

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

Source from the content-addressed store, hash-verified

731 assert path.parent.is_aliased_class
732
733 def test_indexed_entity(self):
734 umapper = inspect(self.classes.User)
735 amapper = inspect(self.classes.Address)
736 path = PathRegistry.coerce(
737 (
738 umapper,
739 umapper.attrs.addresses,
740 amapper,
741 amapper.attrs.email_address,
742 )
743 )
744 is_(path[0], umapper)
745 is_(path[2], amapper)
746
747 def test_indexed_key_token(self):
748 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