MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_indexed_key

Method test_indexed_key

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

Source from the content-addressed store, hash-verified

761 eq_(path[1:3], (umapper.attrs.addresses, amapper))
762
763 def test_indexed_key(self):
764 umapper = inspect(self.classes.User)
765 amapper = inspect(self.classes.Address)
766 path = PathRegistry.coerce(
767 (
768 umapper,
769 umapper.attrs.addresses,
770 amapper,
771 amapper.attrs.email_address,
772 )
773 )
774 eq_(path[1], umapper.attrs.addresses)
775 eq_(path[3], amapper.attrs.email_address)
776
777 def test_slice(self):
778 umapper = inspect(self.classes.User)

Callers

nothing calls this directly

Calls 3

inspectFunction · 0.90
eq_Function · 0.90
coerceMethod · 0.45

Tested by

no test coverage detected