MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_slice

Method test_slice

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

Source from the content-addressed store, hash-verified

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