(self)
| 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() |