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

Method test_subtract

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

Source from the content-addressed store, hash-verified

68 )
69
70 def test_subtract(self):
71 query = QueryString("SELECT price") - 1
72 self.assertIsInstance(query, QueryString)
73 self.assertEqual(
74 query.compile_string(),
75 ("SELECT price - $1", [1]),
76 )
77
78 def test_modulus(self):
79 query = QueryString("SELECT price") % 1

Callers

nothing calls this directly

Calls 3

QueryStringClass · 0.90
assertEqualMethod · 0.80
compile_stringMethod · 0.80

Tested by

no test coverage detected