MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / fn

Method fn

lib/sqlalchemy/testing/suite/test_select.py:1762–1766  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1760 @testing.requires.identity_columns_standard
1761 def test_insert_always_error(self, connection):
1762 def fn():
1763 connection.execute(
1764 self.tables.tbl_a.insert(),
1765 [{"id": 200, "desc": "a"}],
1766 )
1767
1768 assert_raises((DatabaseError, ProgrammingError), fn)
1769

Callers 1

spoilMethod · 0.45

Calls 2

executeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected