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

Method test_prepare_02

tests/test_prepare.py:33–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 self.assertEqual(self.con._protocol.queries_count, 2)
32
33 async def test_prepare_02(self):
34 with self.assertRaisesRegex(Exception, 'column "a" does not exist'):
35 await self.con.prepare('SELECT a')
36
37 async def test_prepare_03(self):
38 cases = [

Callers

nothing calls this directly

Calls 1

prepareMethod · 0.45

Tested by

no test coverage detected