MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_mogrify_multiple

Method test_mogrify_multiple

tests/test_utils.py:32–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 self.assertEqual(mogrified, expected)
31
32 async def test_mogrify_multiple(self):
33 mogrified = await utils._mogrify(
34 self.con, 'SELECT $1::int, $2::int[]',
35 [1, [2, 3, 4, 5]])
36 expected = "SELECT '1'::int, '{2,3,4,5}'::int[]"
37 self.assertEqual(mogrified, expected)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected