MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_addition

Method test_addition

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

Source from the content-addressed store, hash-verified

788 eq_(path[1:3], (umapper.attrs.addresses, amapper))
789
790 def test_addition(self):
791 umapper = inspect(self.classes.User)
792 amapper = inspect(self.classes.Address)
793 p1 = PathRegistry.coerce((umapper, umapper.attrs.addresses))
794 p2 = PathRegistry.coerce((amapper, amapper.attrs.email_address))
795 eq_(
796 p1 + p2,
797 PathRegistry.coerce(
798 (
799 umapper,
800 umapper.attrs.addresses,
801 amapper,
802 amapper.attrs.email_address,
803 )
804 ),
805 )
806
807 def test_length(self):
808 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