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

Method test_error_large_list

test/engine/test_logging.py:502–516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

500 )
501
502 def test_error_large_list(self):
503 assert_raises_message(
504 tsa.exc.DBAPIError,
505 r".*INSERT INTO nonexistent \(data\) values "
506 r"\(\?\)\]\n\[parameters: \[\('0',\), \('1',\), \('2',\), "
507 r"\('3',\), \('4',\), \('5',\), \('6',\), \('7',\) "
508 r"... displaying "
509 r"10 of 100 total bound parameter sets ... "
510 r"\('98',\), \('99',\)\]",
511 lambda: exec_sql(
512 self.eng,
513 "INSERT INTO nonexistent (data) values (?)",
514 [(str(i),) for i in range(100)],
515 ),
516 )
517
518
519class PoolLoggingTest(fixtures.TestBase):

Callers

nothing calls this directly

Calls 2

assert_raises_messageFunction · 0.90
exec_sqlFunction · 0.70

Tested by

no test coverage detected