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

Method test_modulus

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

Source from the content-addressed store, hash-verified

76 )
77
78 def test_modulus(self):
79 query = QueryString("SELECT price") % 1
80 self.assertIsInstance(query, QueryString)
81 self.assertEqual(
82 query.compile_string(),
83 ("SELECT price % $1", [1]),
84 )
85
86 def test_like(self):
87 query = QueryString("strip(name)").like("Python%")

Callers

nothing calls this directly

Calls 3

QueryStringClass · 0.90
assertEqualMethod · 0.80
compile_stringMethod · 0.80

Tested by

no test coverage detected