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

Method test_cursor_03

tests/test_cursor.py:150–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 self.assertIn('"SELECT generate', r)
149
150 async def test_cursor_03(self):
151 st = await self.con.prepare('SELECT generate_series(0, 20)')
152 async with self.con.transaction():
153 with self.assertRaisesRegex(asyncpg.InterfaceError,
154 'prefetch argument can only'):
155 await st.cursor(prefetch=10)
156
157 async def test_cursor_04(self):
158 async with self.con.transaction():

Callers

nothing calls this directly

Calls 3

prepareMethod · 0.80
transactionMethod · 0.80
cursorMethod · 0.45

Tested by

no test coverage detected