(tasks: list, description: str)
| 149 | |
| 150 | |
| 151 | async def _run_phase_with_progress(tasks: list, description: str) -> None: |
| 152 | total = len(tasks) |
| 153 | with Progress(SpinnerColumn(), TextColumn("[progress.description]{task.description}"), transient=True) as progress: |
| 154 | task_id = progress.add_task(description, total=total) |
| 155 | completed = 0 |
| 156 | for future in asyncio.as_completed(tasks): |
| 157 | await future |
| 158 | completed += 1 |
| 159 | progress.update(task_id, completed=completed, description=f"{description} ({completed}/{total})...") |
| 160 | |
| 161 | |
| 162 | # ── Тест 2: домены ──────────────────────────────────────────────────────────── |
no test coverage detected