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

Method test_unbound_options

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

Source from the content-addressed store, hash-verified

503 lambda: sa.orm.raiseload("*"),
504 )
505 def test_unbound_options(self, test_case):
506 sess, User, Address, Dingaling = self._option_test_fixture()
507
508 opt = testing.resolve_lambda(test_case, User=User, Address=Address)
509 opt2 = pickle.loads(pickle.dumps(opt))
510 eq_(opt.path, opt2.path)
511
512 u1 = sess.query(User).options(opt).first()
513 pickle.loads(pickle.dumps(u1))
514
515 @testing.combinations(
516 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