MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_unique_mappings_all

Method test_unique_mappings_all

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

Source from the content-addressed store, hash-verified

481 eq_(result.unique().scalars(1).all(), [1, 3])
482
483 def test_unique_mappings_all(self):
484 result = self._fixture()
485
486 def uniq(row):
487 return row[0]
488
489 eq_(
490 result.unique(uniq).mappings().all(),
491 [
492 {"a": 1, "b": 1, "c": 1},
493 {"a": 2, "b": 1, "c": 2},
494 {"a": 4, "b": 1, "c": 2},
495 ],
496 )
497
498 def test_unique_filtered_all(self):
499 result = self._fixture()

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
eq_Function · 0.90
allMethod · 0.45
mappingsMethod · 0.45
uniqueMethod · 0.45

Tested by

no test coverage detected