MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_icontains

Method test_icontains

test/sql/test_operators.py:3736–3744  ·  view source on GitHub ↗

case insensitive contains method

(self)

Source from the content-addressed store, hash-verified

3734 )
3735
3736 def test_icontains(self):
3737 """
3738 case insensitive contains method
3739 """
3740 self.assert_compile(
3741 column("x").icontains("y"),
3742 "lower(x) LIKE '%' || lower(:x_1) || '%'",
3743 checkparams={"x_1": "y"},
3744 )
3745
3746 def test_icontains_pg(self):
3747 """

Callers

nothing calls this directly

Calls 3

columnFunction · 0.90
assert_compileMethod · 0.80
icontainsMethod · 0.45

Tested by

no test coverage detected