(N, meth)
| 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] |
no test coverage detected