MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_one_or_none

Method test_scalar_one_or_none

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

Source from the content-addressed store, hash-verified

682 eq_(result.one_or_none(), (1, 1, 1))
683
684 def test_scalar_one_or_none(self):
685 result = self._fixture(num_rows=1)
686
687 eq_(result.scalar_one_or_none(), 1)
688
689 def test_scalar_one_or_none_none(self):
690 result = self._fixture(num_rows=0)

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
eq_Function · 0.90
scalar_one_or_noneMethod · 0.45

Tested by

no test coverage detected