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

Method test_path_multilevel_attribute

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

Source from the content-addressed store, hash-verified

494 self._assert_path_result(opt, q, [])
495
496 def test_path_multilevel_attribute(self):
497 Item, User, Order = (
498 self.classes.Item,
499 self.classes.User,
500 self.classes.Order,
501 )
502
503 sess = fixture_session()
504 q = sess.query(User)
505
506 opt = self._option_fixture(User.orders, Order.items, Item.keywords)
507 self._assert_path_result(
508 opt,
509 q,
510 [
511 (User, "orders"),
512 (User, "orders", Order, "items"),
513 (User, "orders", Order, "items", Item, "keywords"),
514 ],
515 )
516
517 def test_with_current_matching_attribute(self):
518 Item, User, Order = (

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected