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

Method insert_data

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

Source from the content-addressed store, hash-verified

3428
3429 @classmethod
3430 def insert_data(cls, connection):
3431 s = Session(connection)
3432 s.add_all(cls._fixture_data())
3433 s.commit()
3434
3435 def _assert_result(self, query):
3436 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