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

Method test_icontains

test/sql/test_operators.py:3542–3550  ·  view source on GitHub ↗

case insensitive contains method

(self)

Source from the content-addressed store, hash-verified

3540 )
3541
3542 def test_icontains(self):
3543 """
3544 case insensitive contains method
3545 """
3546 self.assert_compile(
3547 column("x").icontains("y"),
3548 "lower(x) LIKE '%' || lower(:x_1) || '%'",
3549 checkparams={"x_1": "y"},
3550 )
3551
3552 def test_icontains_pg(self):
3553 """

Callers

nothing calls this directly

Calls 3

columnFunction · 0.90
assert_compileMethod · 0.80
icontainsMethod · 0.45

Tested by

no test coverage detected