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

Method test_three

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

Source from the content-addressed store, hash-verified

1464 self._assert_opts(sess.query(User), sub_opt, non_sub_opts)
1465
1466 def test_three(self):
1467 User, Address, Order, Item, SubItem = self.classes(
1468 "User", "Address", "Order", "Item", "SubItem"
1469 )
1470 sub_opt = defaultload(User.orders).options(defer("*"))
1471 non_sub_opts = [defaultload(User.orders).defer("*")]
1472 sess = fixture_session()
1473 self._assert_opts(sess.query(User), sub_opt, non_sub_opts)
1474
1475 def test_four(self):
1476 User, Address, Order, Item, SubItem, Keyword = self.classes(

Callers

nothing calls this directly

Calls 7

_assert_optsMethod · 0.95
defaultloadFunction · 0.90
deferFunction · 0.90
fixture_sessionFunction · 0.90
deferMethod · 0.80
optionsMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected