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

Method fn

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

Source from the content-addressed store, hash-verified

1754 @testing.requires.identity_columns_standard
1755 def test_insert_always_error(self, connection):
1756 def fn():
1757 connection.execute(
1758 self.tables.tbl_a.insert(),
1759 [{"id": 200, "desc": "a"}],
1760 )
1761
1762 assert_raises((DatabaseError, ProgrammingError), fn)
1763

Callers 1

spoilMethod · 0.45

Calls 2

executeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected