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

Method test_indexed_key

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

Source from the content-addressed store, hash-verified

777 eq_(path[1:3], (umapper.attrs.addresses, amapper))
778
779 def test_indexed_key(self):
780 umapper = inspect(self.classes.User)
781 amapper = inspect(self.classes.Address)
782 path = PathRegistry.coerce(
783 (
784 umapper,
785 umapper.attrs.addresses,
786 amapper,
787 amapper.attrs.email_address,
788 )
789 )
790 eq_(path[1], umapper.attrs.addresses)
791 eq_(path[3], amapper.attrs.email_address)
792
793 def test_slice(self):
794 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