MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_mapping_plus_base

Method test_mapping_plus_base

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

Source from the content-addressed store, hash-verified

349 assert isinstance(s1, result.ScalarResult)
350
351 def test_mapping_plus_base(self):
352 r1 = self._fixture()
353
354 m1 = r1.mappings()
355 eq_(m1.fetchone(), {"a": 1, "b": 1, "c": 1})
356 eq_(r1.fetchone(), (2, 1, 2))
357
358 @expect_deprecated(".*is deprecated, Row now behaves like a tuple.*")
359 def test_tuples_plus_base(self):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected