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

Method test_fetch

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

Source from the content-addressed store, hash-verified

546
547 async def test_pool_connection_methods(self):
548 async def test_fetch(pool):
549 i = random.randint(0, 20)
550 await asyncio.sleep(random.random() / 100)
551 r = await pool.fetch('SELECT {}::int'.format(i))
552 self.assertEqual(r, [(i,)])
553 return 1
554
555 async def test_fetchrow(pool):
556 i = random.randint(0, 20)

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected