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

Method test_execute_with_arg

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

Source from the content-addressed store, hash-verified

634 return 1
635
636 async def test_execute_with_arg(pool):
637 i = random.randint(0, 20)
638 await asyncio.sleep(random.random() / 100)
639 r = await pool.execute('SELECT generate_series(0, $1)', i)
640 self.assertEqual(r, 'SELECT {}'.format(i + 1))
641 return 1
642
643 async def run(N, meth):
644 async with self.create_pool(database='postgres',

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected