MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_path_multilevel_attribute

Method test_path_multilevel_attribute

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

Source from the content-addressed store, hash-verified

484 self._assert_path_result(opt, q, [])
485
486 def test_path_multilevel_attribute(self):
487 Item, User, Order = (
488 self.classes.Item,
489 self.classes.User,
490 self.classes.Order,
491 )
492
493 sess = fixture_session()
494 q = sess.query(User)
495
496 opt = self._option_fixture(User.orders, Order.items, Item.keywords)
497 self._assert_path_result(
498 opt,
499 q,
500 [
501 (User, "orders"),
502 (User, "orders", Order, "items"),
503 (User, "orders", Order, "items", Item, "keywords"),
504 ],
505 )
506
507 def test_with_current_matching_attribute(self):
508 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