MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_no_statement_text_coercion

Method test_no_statement_text_coercion

test/sql/test_roles.py:247–253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245 expect(roles.ExpressionElementRole, Thing())
246
247 def test_no_statement_text_coercion(self):
248 with testing.expect_raises_message(
249 exc.ArgumentError,
250 r"Textual SQL expression 'select \* from table' should be "
251 "explicitly declared",
252 ):
253 expect(roles.StatementRole, "select * from table")
254
255 def test_select_statement_no_text_coercion(self):
256 assert_raises_message(

Callers

nothing calls this directly

Calls 1

expectFunction · 0.90

Tested by

no test coverage detected