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

Method run

tests/test_pool.py:643–651  ·  view source on GitHub ↗
(N, meth)

Source from the content-addressed store, hash-verified

641 return 1
642
643 async def run(N, meth):
644 async with self.create_pool(database='postgres',
645 init_size=5,
646 min_size=0,
647 max_size=10) as pool:
648
649 coros = [meth(pool) for _ in range(N)]
650 res = await asyncio.gather(*coros)
651 self.assertEqual(res, [1] * N)
652
653 methods = [test_fetch, test_fetchrow, test_fetchval,
654 test_execute, test_execute_with_arg]

Callers 15

git_commitishFunction · 0.45
mainFunction · 0.45
__init__.pyFile · 0.45
test_tests_fail_1Method · 0.45
test_flake8Method · 0.45
test_mypyMethod · 0.45
get_statusMethod · 0.45
initMethod · 0.45
startMethod · 0.45
reloadMethod · 0.45
stopMethod · 0.45
reset_walMethod · 0.45

Calls 1

create_poolMethod · 0.45

Tested by

no test coverage detected