MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / insert_data

Method insert_data

test/orm/test_eager_relations.py:3513–3516  ·  view source on GitHub ↗
(cls, connection)

Source from the content-addressed store, hash-verified

3511
3512 @classmethod
3513 def insert_data(cls, connection):
3514 s = Session(connection)
3515 s.add_all(cls._fixture_data())
3516 s.commit()
3517
3518 def _assert_result(self, query):
3519 eq_(query.all(), self._fixture_data())

Callers

nothing calls this directly

Calls 4

add_allMethod · 0.95
commitMethod · 0.95
SessionClass · 0.90
_fixture_dataMethod · 0.45

Tested by

no test coverage detected