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

Method test_slice_token

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

Source from the content-addressed store, hash-verified

763 path[amapper]
764
765 def test_slice_token(self):
766 umapper = inspect(self.classes.User)
767 amapper = inspect(self.classes.Address)
768 path = PathRegistry.coerce(
769 (
770 umapper,
771 umapper.attrs.addresses,
772 amapper,
773 PathToken._intern["relationship:*"],
774 )
775 )
776 is_true(path.is_token)
777 eq_(path[1:3], (umapper.attrs.addresses, amapper))
778
779 def test_indexed_key(self):
780 umapper = inspect(self.classes.User)

Callers

nothing calls this directly

Calls 4

inspectFunction · 0.90
is_trueFunction · 0.90
eq_Function · 0.90
coerceMethod · 0.45

Tested by

no test coverage detected