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

Method test_add

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

Source from the content-addressed store, hash-verified

36 """
37
38 def test_add(self):
39 query = QueryString("SELECT price") + 1
40 self.assertIsInstance(query, QueryString)
41 self.assertEqual(
42 query.compile_string(),
43 ("SELECT price + $1", [1]),
44 )
45
46 def test_multiply(self):
47 query = QueryString("SELECT price") * 2

Callers

nothing calls this directly

Calls 3

QueryStringClass · 0.90
assertEqualMethod · 0.80
compile_stringMethod · 0.80

Tested by

no test coverage detected