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

Method test_fetchrow

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

Source from the content-addressed store, hash-verified

614 return 1
615
616 async def test_fetchrow(pool):
617 i = random.randint(0, 20)
618 await asyncio.sleep(random.random() / 100)
619 r = await pool.fetchrow('SELECT {}::int'.format(i))
620 self.assertEqual(r, (i,))
621 return 1
622
623 async def test_fetchval(pool):
624 i = random.randint(0, 20)

Callers

nothing calls this directly

Calls 1

fetchrowMethod · 0.45

Tested by

no test coverage detected