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

Method test_execute

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

Source from the content-addressed store, hash-verified

567 return 1
568
569 async def test_execute(pool):
570 await asyncio.sleep(random.random() / 100)
571 r = await pool.execute('SELECT generate_series(0, 10)')
572 self.assertEqual(r, 'SELECT {}'.format(11))
573 return 1
574
575 async def test_execute_with_arg(pool):
576 i = random.randint(0, 20)

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected