(self)
| 273 | ) |
| 274 | |
| 275 | def test_bulk_insert(self): |
| 276 | Foo = self.classes.Foo |
| 277 | |
| 278 | s1 = self._fixture() |
| 279 | s1.bulk_insert_mappings( |
| 280 | Foo, [{"id": 1, "value": "f1"}, {"id": 2, "value": "f2"}] |
| 281 | ) |
| 282 | eq_( |
| 283 | s1.query(Foo.id, Foo.value, Foo.version_id).order_by(Foo.id).all(), |
| 284 | [(1, "f1", 1), (2, "f2", 1)], |
| 285 | ) |
| 286 | |
| 287 | def test_bulk_update(self): |
| 288 | Foo = self.classes.Foo |