MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_tostring_large_list

Method test_tostring_large_list

test/base/test_except.py:191–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189 )
190
191 def test_tostring_large_list(self):
192 try:
193 raise sa_exceptions.DBAPIError.instance(
194 "this is a message",
195 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
196 OperationalError(),
197 DatabaseError,
198 )
199 except sa_exceptions.DBAPIError as ex:
200 assert str(ex).startswith(
201 "(test.base.test_except.OperationalError) \n"
202 "[SQL: this is a message]\n[parameters: "
203 "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]"
204 )
205
206 def test_tostring_large_executemany(self):
207 try:

Callers

nothing calls this directly

Calls 3

instanceMethod · 0.80
OperationalErrorClass · 0.70
startswithMethod · 0.45

Tested by

no test coverage detected