MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_expand

Method test_expand

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

Source from the content-addressed store, hash-verified

679 eq_(RootRegistry()[umapper], PathRegistry.coerce((umapper,)))
680
681 def test_expand(self):
682 umapper = inspect(self.classes.User)
683 amapper = inspect(self.classes.Address)
684 path = PathRegistry.coerce((umapper,))
685
686 eq_(
687 path[umapper.attrs.addresses][amapper][
688 amapper.attrs.email_address
689 ],
690 PathRegistry.coerce(
691 (
692 umapper,
693 umapper.attrs.addresses,
694 amapper,
695 amapper.attrs.email_address,
696 )
697 ),
698 )
699
700 def test_entity_boolean(self):
701 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