MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_one_or_none

Method test_one_or_none

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

Source from the content-addressed store, hash-verified

677 )
678
679 def test_one_or_none(self):
680 result = self._fixture(num_rows=1)
681
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)

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
eq_Function · 0.90
one_or_noneMethod · 0.45

Tested by

no test coverage detected