MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_one_or_none_none

Method test_one_or_none_none

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

Source from the content-addressed store, hash-verified

692 eq_(result.scalar_one_or_none(), None)
693
694 def test_one_or_none_none(self):
695 result = self._fixture(num_rows=0)
696
697 eq_(result.one_or_none(), None)
698
699 def test_one_raise_mutiple(self):
700 result = self._fixture(num_rows=2)

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