Skip to content

Commit 7783ef2

Browse files
authored
Fix logical OR operator in desired capabilities
1 parent c11a60f commit 7783ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/ios/helper/desired_capabilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_desired_capabilities(app: Optional[str] = None) -> Dict[str, Any]:
2828
desired_caps: Dict[str, Any] = {
2929
'deviceName': iphone_device_name(),
3030
'platformName': 'iOS',
31-
'platformVersion': os.getenv('IOS_VERSION') || '17.4',
31+
'platformVersion': os.getenv('IOS_VERSION') or '17.4',
3232
'automationName': 'XCUITest',
3333
'allowTouchIdEnroll': True,
3434
'wdaLocalPort': wda_port(),
@@ -75,7 +75,7 @@ def wda_port() -> int:
7575

7676

7777
def iphone_device_name() -> str:
78-
prefix = os.getenv('IPHONE_MODEL') ||'iPhone 15 Plus'
78+
prefix = os.getenv('IPHONE_MODEL') or 'iPhone 15 Plus'
7979
if PytestXdistWorker.NUMBER == PytestXdistWorker.gw(0):
8080
return f'{prefix} - 8100'
8181
elif PytestXdistWorker.NUMBER == PytestXdistWorker.gw(1):

0 commit comments

Comments
 (0)