MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_three

Method test_three

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

Source from the content-addressed store, hash-verified

1454 self._assert_opts(sess.query(User), sub_opt, non_sub_opts)
1455
1456 def test_three(self):
1457 User, Address, Order, Item, SubItem = self.classes(
1458 "User", "Address", "Order", "Item", "SubItem"
1459 )
1460 sub_opt = defaultload(User.orders).options(defer("*"))
1461 non_sub_opts = [defaultload(User.orders).defer("*")]
1462 sess = fixture_session()
1463 self._assert_opts(sess.query(User), sub_opt, non_sub_opts)
1464
1465 def test_four(self):
1466 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