()
| 15 | |
| 16 | @pytest.mark.asyncio |
| 17 | async def test_gather_tasks_with_n_concurrency(): |
| 18 | tasks = [asyncio.create_task(number_task(i)) for i in range(1000)] |
| 19 | sum_value = (0 + 999) * 1000 / 2 |
| 20 | result = await gather_with_concurrency(10, tasks) |
| 21 | assert sum_value == sum(result), 'the final sum value is not correct' |
| 22 | |
| 23 | |
| 24 | def test_fetch_metadata(): |
nothing calls this directly
no test coverage detected