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

Method test_power

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

Source from the content-addressed store, hash-verified

60 )
61
62 def test_power(self):
63 query = QueryString("SELECT price") ** 2
64 self.assertIsInstance(query, QueryString)
65 self.assertEqual(
66 query.compile_string(),
67 ("SELECT price ^ $1", [2]),
68 )
69
70 def test_subtract(self):
71 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