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

Method test_addition

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

Source from the content-addressed store, hash-verified

804 eq_(path[1:3], (umapper.attrs.addresses, amapper))
805
806 def test_addition(self):
807 umapper = inspect(self.classes.User)
808 amapper = inspect(self.classes.Address)
809 p1 = PathRegistry.coerce((umapper, umapper.attrs.addresses))
810 p2 = PathRegistry.coerce((amapper, amapper.attrs.email_address))
811 eq_(
812 p1 + p2,
813 PathRegistry.coerce(
814 (
815 umapper,
816 umapper.attrs.addresses,
817 amapper,
818 amapper.attrs.email_address,
819 )
820 ),
821 )
822
823 def test_length(self):
824 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