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

Method _assert_raises

test/sql/test_query.py:904–912  ·  view source on GitHub ↗
(self, stmt, params)

Source from the content-addressed store, hash-verified

902 )
903
904 def _assert_raises(self, stmt, params):
905 with testing.db.connect() as conn:
906 assert_raises_message(
907 exc.StatementError,
908 "A value is required for bind parameter 'x'",
909 conn.execute,
910 stmt,
911 params,
912 )
913
914 def test_insert(self):
915 stmt = self.tables.foo.insert().values(

Callers 4

test_insertMethod · 0.95
test_select_whereMethod · 0.95
test_select_columnsMethod · 0.95
test_textMethod · 0.95

Calls 2

assert_raises_messageFunction · 0.90
connectMethod · 0.45

Tested by

no test coverage detected