MCPcopy Create free account
hub / github.com/appium/python-client / iphone_device_name

Function iphone_device_name

test/functional/ios/helper/options.py:43–55  ·  view source on GitHub ↗

Get a unique device name for the current worker. Uses the base device name and appends the port number for uniqueness.

()

Source from the content-addressed store, hash-verified

41
42
43def iphone_device_name() -> str:
44 """
45 Get a unique device name for the current worker.
46 Uses the base device name and appends the port number for uniqueness.
47 """
48 prefix = os.getenv('IPHONE_MODEL') or 'iPhone 15 Plus'
49 worker_info = get_worker_info()
50
51 if worker_info.is_parallel:
52 port = get_wda_port()
53 return f'{prefix} - {port}'
54
55 return prefix

Callers 1

make_optionsFunction · 0.85

Calls 2

get_worker_infoFunction · 0.90
get_wda_portFunction · 0.90

Tested by

no test coverage detected