Information about the current test worker in parallel execution.
| 100 | |
| 101 | @dataclass |
| 102 | class WorkerInfo: |
| 103 | """Information about the current test worker in parallel execution.""" |
| 104 | |
| 105 | worker_number: Optional[int] |
| 106 | total_workers: Optional[int] |
| 107 | |
| 108 | @property |
| 109 | def is_parallel(self) -> bool: |
| 110 | """Check if running in parallel mode.""" |
| 111 | return self.worker_number is not None and self.total_workers is not None |
| 112 | |
| 113 | |
| 114 | def get_worker_info() -> WorkerInfo: |
no outgoing calls