MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalars_no_fetchone

Method test_scalars_no_fetchone

test/base/test_result.py:585–596  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

583 )
584
585 def test_scalars_no_fetchone(self):
586 result = self._fixture()
587
588 s = result.scalars()
589
590 assert not hasattr(s, "fetchone")
591
592 # original result is unchanged
593 eq_(result.mappings().fetchone(), {"a": 1, "b": 1, "c": 1})
594
595 # scalars
596 eq_(s.all(), [2, 1, 4])
597
598 def test_first(self):
599 result = self._fixture()

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
eq_Function · 0.90
scalarsMethod · 0.45
fetchoneMethod · 0.45
mappingsMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected