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

Method test_compile_string

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

Source from the content-addressed store, hash-verified

11 )
12
13 def test_compile_string(self):
14 compiled_string, args = self.qs.compile_string()
15
16 self.assertEqual(
17 compiled_string, "SELECT id FROM band WHERE name = $1"
18 )
19
20 self.assertEqual(args, ["Pythonistas"])
21
22 def test_string(self):
23 string = self.qs.__str__()

Callers

nothing calls this directly

Calls 2

compile_stringMethod · 0.80
assertEqualMethod · 0.80

Tested by

no test coverage detected