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

Method test_prepare_05_unknownoid

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

Source from the content-addressed store, hash-verified

81 self.assertIsNone(s.get_statusmsg())
82
83 async def test_prepare_05_unknownoid(self):
84 s = await self.con.prepare("SELECT 'test'")
85 self.assertEqual(await s.fetchval(), 'test')
86
87 async def test_prepare_06_interrupted_close(self):
88 stmt = await self.con.prepare('''SELECT pg_sleep(10)''')

Callers

nothing calls this directly

Calls 2

prepareMethod · 0.45
fetchvalMethod · 0.45

Tested by

no test coverage detected