(N, meth)
| 580 | return 1 |
| 581 | |
| 582 | async def run(N, meth): |
| 583 | async with self.create_pool(database='postgres', |
| 584 | min_size=5, max_size=10) as pool: |
| 585 | |
| 586 | coros = [meth(pool) for _ in range(N)] |
| 587 | res = await asyncio.gather(*coros) |
| 588 | self.assertEqual(res, [1] * N) |
| 589 | |
| 590 | methods = [test_fetch, test_fetchrow, test_fetchval, |
| 591 | test_execute, test_execute_with_arg] |
no test coverage detected