MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_get

Method test_get

test/ext/test_baked.py:431–439  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

429 eq_(list(result)[0], (7,))
430
431 def test_get(self):
432 User = self.classes.User
433 with self._fixture() as (sess, bq):
434 bq = self.bakery(lambda s: s.query(User))
435
436 result = bq(sess).with_post_criteria(
437 lambda q: q.execution_options(yes=True)
438 )
439 eq_(result.get(7), User(id=7))
440
441
442class ResultTest(BakedTest):

Callers

nothing calls this directly

Calls 8

_fixtureMethod · 0.95
eq_Function · 0.90
bakeryMethod · 0.80
with_post_criteriaMethod · 0.80
UserClass · 0.70
queryMethod · 0.45
execution_optionsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected