MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_first

Method test_first

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

Source from the content-addressed store, hash-verified

407 yield sess, bq
408
409 def test_first(self):
410 with self._fixture() as (sess, bq):
411 result = bq(sess).with_post_criteria(
412 lambda q: q.execution_options(yes=True)
413 )
414 eq_(result.first(), (7,))
415
416 def test_iter(self):
417 with self._fixture() as (sess, bq):

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
eq_Function · 0.90
with_post_criteriaMethod · 0.80
execution_optionsMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected