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

Method test_fetchrow

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

Source from the content-addressed store, hash-verified

553 return 1
554
555 async def test_fetchrow(pool):
556 i = random.randint(0, 20)
557 await asyncio.sleep(random.random() / 100)
558 r = await pool.fetchrow('SELECT {}::int'.format(i))
559 self.assertEqual(r, (i,))
560 return 1
561
562 async def test_fetchval(pool):
563 i = random.randint(0, 20)

Callers

nothing calls this directly

Calls 1

fetchrowMethod · 0.45

Tested by

no test coverage detected