MCPcopy Index your code
hub / github.com/appium/python-client / WorkerInfo

Class WorkerInfo

test/functional/test_helper.py:102–111  ·  view source on GitHub ↗

Information about the current test worker in parallel execution.

Source from the content-addressed store, hash-verified

100
101@dataclass
102class 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
114def get_worker_info() -> WorkerInfo:

Callers 1

get_worker_infoFunction · 0.85

Calls

no outgoing calls

Tested by 1

get_worker_infoFunction · 0.68