MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_invalid_op

Method test_invalid_op

test/sql/test_operators.py:989–996  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

987 )
988
989 def test_invalid_op(self):
990 with expect_deprecated(
991 r"Type object .*.Integer.* does not include "
992 "operator 'like_op' in its operator classes."
993 ):
994 expr = column("q", Integer).like("hi")
995
996 self.assert_compile(expr, "q LIKE :q_1", checkparams={"q_1": "hi"})
997
998 def test_invalid_op_custom(self):
999 class MyType(Integer):

Callers

nothing calls this directly

Calls 4

expect_deprecatedFunction · 0.90
columnFunction · 0.90
assert_compileMethod · 0.80
likeMethod · 0.45

Tested by

no test coverage detected