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

Method test_cursor_03

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

Source from the content-addressed store, hash-verified

159 self.assertIn('"SELECT generate', r)
160
161 async def test_cursor_03(self):
162 st = await self.con.prepare('SELECT generate_series(0, 20)')
163 async with self.con.transaction():
164 with self.assertRaisesRegex(asyncpg.InterfaceError,
165 'prefetch argument can only'):
166 await st.cursor(prefetch=10)
167
168 async def test_cursor_04(self):
169 async with self.con.transaction():

Callers

nothing calls this directly

Calls 3

transactionMethod · 0.80
prepareMethod · 0.45
cursorMethod · 0.45

Tested by

no test coverage detected