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

Method test_execute_with_arg

tests/test_pool.py:575–580  ·  view source on GitHub ↗
(pool)

Source from the content-addressed store, hash-verified

573 return 1
574
575 async def test_execute_with_arg(pool):
576 i = random.randint(0, 20)
577 await asyncio.sleep(random.random() / 100)
578 r = await pool.execute('SELECT generate_series(0, $1)', i)
579 self.assertEqual(r, 'SELECT {}'.format(i + 1))
580 return 1
581
582 async def run(N, meth):
583 async with self.create_pool(database='postgres',

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected