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

Method test_multiply

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

Source from the content-addressed store, hash-verified

44 )
45
46 def test_multiply(self):
47 query = QueryString("SELECT price") * 2
48 self.assertIsInstance(query, QueryString)
49 self.assertEqual(
50 query.compile_string(),
51 ("SELECT price * $1", [2]),
52 )
53
54 def test_divide(self):
55 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