MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _test_bulk_insert

Method _test_bulk_insert

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

Source from the content-addressed store, hash-verified

3720 self._assert_col(attr, expected)
3721
3722 def _test_bulk_insert(self, attr, expected):
3723 Thing, AltNameThing = self.classes.Thing, self.classes.AltNameThing
3724
3725 s = fixture_session()
3726 s.bulk_insert_mappings(Thing, [{attr: None}])
3727 s.bulk_insert_mappings(AltNameThing, [{"_foo_" + attr: None}])
3728 s.commit()
3729
3730 self._assert_col(attr, expected)
3731
3732 def _test_insert_novalue(self, attr, expected):
3733 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