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

Method test_prepare_does_not_use_cache

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

Source from the content-addressed store, hash-verified

595 self.fail('InvalidSQLStatementNameError not raised')
596
597 async def test_prepare_does_not_use_cache(self):
598 cache = self.con._stmt_cache
599
600 # prepare with disabled cache
601 await self.con.prepare('select 1')
602 self.assertEqual(len(cache), 0)
603
604 async def test_prepare_explicitly_named(self):
605 ps = await self.con.prepare('select 1', name='foobar')

Callers

nothing calls this directly

Calls 1

prepareMethod · 0.45

Tested by

no test coverage detected