MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_path_exhausted

Method test_path_exhausted

test/orm/test_options.py:783–792  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

781 self._assert_path_result(opt, q, [(Order, "items")])
782
783 def test_path_exhausted(self):
784 User = self.classes.User
785 Item = self.classes.Item
786 Order = self.classes.Order
787 opt = self._option_fixture(User.orders)
788 sess = fixture_session()
789 q = sess.query(Item)._with_current_path(
790 self._make_path_registry([User, "orders", Order, "items"])
791 )
792 self._assert_path_result(opt, q, [])
793
794 def test_chained(self):
795 User = self.classes.User

Callers

nothing calls this directly

Calls 6

_option_fixtureMethod · 0.95
fixture_sessionFunction · 0.90
_with_current_pathMethod · 0.80
_make_path_registryMethod · 0.80
_assert_path_resultMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected