MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _test_bulk_insert

Method _test_bulk_insert

test/orm/test_unitofworkv2.py:3707–3715  ·  view source on GitHub ↗
(self, attr, expected)

Source from the content-addressed store, hash-verified

3705 self._assert_col(attr, expected)
3706
3707 def _test_bulk_insert(self, attr, expected):
3708 Thing, AltNameThing = self.classes.Thing, self.classes.AltNameThing
3709
3710 s = fixture_session()
3711 s.bulk_insert_mappings(Thing, [{attr: None}])
3712 s.bulk_insert_mappings(AltNameThing, [{"_foo_" + attr: None}])
3713 s.commit()
3714
3715 self._assert_col(attr, expected)
3716
3717 def _test_insert_novalue(self, attr, expected):
3718 Thing, AltNameThing = self.classes.Thing, self.classes.AltNameThing

Calls 4

_assert_colMethod · 0.95
fixture_sessionFunction · 0.90
bulk_insert_mappingsMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected