MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_unbound_options

Method test_unbound_options

test/orm/test_pickled.py:490–498  ·  view source on GitHub ↗
(self, test_case)

Source from the content-addressed store, hash-verified

488 lambda: sa.orm.raiseload("*"),
489 )
490 def test_unbound_options(self, test_case):
491 sess, User, Address, Dingaling = self._option_test_fixture()
492
493 opt = testing.resolve_lambda(test_case, User=User, Address=Address)
494 opt2 = pickle.loads(pickle.dumps(opt))
495 eq_(opt.path, opt2.path)
496
497 u1 = sess.query(User).options(opt).first()
498 pickle.loads(pickle.dumps(u1))
499
500 @testing.combinations(
501 lambda User: sa.orm.Load(User).joinedload(User.addresses),

Callers

nothing calls this directly

Calls 7

_option_test_fixtureMethod · 0.95
eq_Function · 0.90
loadsMethod · 0.45
dumpsMethod · 0.45
firstMethod · 0.45
optionsMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected