MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_disabled

Method test_disabled

test/sql/test_insert_exec.py:1202–1218  ·  view source on GitHub ↗
(self, testing_engine)

Source from the content-addressed store, hash-verified

1200 )
1201
1202 def test_disabled(self, testing_engine):
1203 e = testing_engine(
1204 options={"use_insertmanyvalues": False, "sqlite_share_pool": True},
1205 )
1206 totalnum = 1275
1207 data = [{"x": "x%d" % i, "y": "y%d" % i} for i in range(1, totalnum)]
1208
1209 t = self.tables.data
1210
1211 with e.begin() as conn:
1212 stmt = t.insert()
1213 with expect_raises_message(
1214 exc.StatementError,
1215 "with current server capabilities does not support "
1216 "INSERT..RETURNING when executemany",
1217 ):
1218 conn.execute(stmt.returning(t.c.id), data)
1219
1220
1221class IMVSentinelTest(fixtures.TestBase):

Callers

nothing calls this directly

Calls 6

expect_raises_messageFunction · 0.90
testing_engineFunction · 0.85
beginMethod · 0.45
insertMethod · 0.45
executeMethod · 0.45
returningMethod · 0.45

Tested by

no test coverage detected