MCPcopy Create free account
hub / github.com/piccolo-orm/piccolo / test_ilike

Method test_ilike

tests/query/test_querystring.py:94–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 )
93
94 def test_ilike(self):
95 query = QueryString("strip(name)").ilike("Python%")
96 self.assertIsInstance(query, QueryString)
97 self.assertEqual(
98 query.compile_string(),
99 ("strip(name) ILIKE $1", ["Python%"]),
100 )
101
102 def test_greater_than(self):
103 query = QueryString("SELECT price") > 10

Callers

nothing calls this directly

Calls 4

QueryStringClass · 0.90
assertEqualMethod · 0.80
compile_stringMethod · 0.80
ilikeMethod · 0.45

Tested by

no test coverage detected