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

Method test_expand

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

Source from the content-addressed store, hash-verified

695 eq_(RootRegistry()[umapper], PathRegistry.coerce((umapper,)))
696
697 def test_expand(self):
698 umapper = inspect(self.classes.User)
699 amapper = inspect(self.classes.Address)
700 path = PathRegistry.coerce((umapper,))
701
702 eq_(
703 path[umapper.attrs.addresses][amapper][
704 amapper.attrs.email_address
705 ],
706 PathRegistry.coerce(
707 (
708 umapper,
709 umapper.attrs.addresses,
710 amapper,
711 amapper.attrs.email_address,
712 )
713 ),
714 )
715
716 def test_entity_boolean(self):
717 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