MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_bulk_insert

Method test_bulk_insert

test/orm/test_versioning.py:275–285  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
eq_Function · 0.90
bulk_insert_mappingsMethod · 0.45
allMethod · 0.45
order_byMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected