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

Method test_divide

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

Source from the content-addressed store, hash-verified

52 )
53
54 def test_divide(self):
55 query = QueryString("SELECT price") / 1
56 self.assertIsInstance(query, QueryString)
57 self.assertEqual(
58 query.compile_string(),
59 ("SELECT price / $1", [1]),
60 )
61
62 def test_power(self):
63 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