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

Method insert_data

lib/sqlalchemy/testing/suite/test_select.py:117–125  ·  view source on GitHub ↗
(cls, connection)

Source from the content-addressed store, hash-verified

115
116 @classmethod
117 def insert_data(cls, connection):
118 connection.execute(
119 cls.tables.some_table.insert(),
120 [
121 {"id": 1, "x": 1, "y": 2, "q": "q1", "p": "p3"},
122 {"id": 2, "x": 2, "y": 3, "q": "q2", "p": "p2"},
123 {"id": 3, "x": 3, "y": 4, "q": "q3", "p": "p1"},
124 ],
125 )
126
127 def _assert_result(self, select, result):
128 with config.db.connect() as conn:

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected