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

Method test_like

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

Source from the content-addressed store, hash-verified

84 )
85
86 def test_like(self):
87 query = QueryString("strip(name)").like("Python%")
88 self.assertIsInstance(query, QueryString)
89 self.assertEqual(
90 query.compile_string(),
91 ("strip(name) LIKE $1", ["Python%"]),
92 )
93
94 def test_ilike(self):
95 query = QueryString("strip(name)").ilike("Python%")

Callers

nothing calls this directly

Calls 4

QueryStringClass · 0.90
assertEqualMethod · 0.80
compile_stringMethod · 0.80
likeMethod · 0.45

Tested by

no test coverage detected