Skip to content

Commit

Permalink
Merge pull request #1151 from cauchy733/master
Browse files Browse the repository at this point in the history
fix spell mistakes
  • Loading branch information
yimelia committed Aug 22, 2023
2 parents 87f6ade + 0ef1659 commit bf49dfa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions airtest/core/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def device_info(self):
try:
# Add some device info.
if not self.is_local_device:
raise RuntimeError("Can noly use this method in local device now, not remote device.")
raise RuntimeError("Can only use this method in local device now, not remote device.")
tmp_dict = TIDevice.device_info(self.udid)
device_info.update(tmp_dict)
except:
Expand Down Expand Up @@ -785,7 +785,7 @@ def install_app(self, file_or_url):
bundle ID
"""
if not self.is_local_device:
raise RuntimeError("Can noly use this method in local device now, not remote device.")
raise RuntimeError("Can only use this method in local device now, not remote device.")
return TIDevice.install_app(self.udid, file_or_url)

def uninstall_app(self, bundle_id):
Expand All @@ -798,7 +798,7 @@ def uninstall_app(self, bundle_id):
bundle_id: the app bundle id, e.g ``com.apple.mobilesafari``
"""
if not self.is_local_device:
raise RuntimeError("Can noly use this method in local device now, not remote device.")
raise RuntimeError("Can only use this method in local device now, not remote device.")
return TIDevice.uninstall_app(self.udid, bundle_id)

def start_app(self, bundle_id, *args, **kwargs):
Expand All @@ -825,7 +825,7 @@ def stop_app(self, bundle_id):
"""
try:
if not self.is_local_device:
raise RuntimeError("Can noly use this method in local device now, not remote device.")
raise RuntimeError("Can only use this method in local device now, not remote device.")
TIDevice.stop_app(self.udid, bundle_id)
except:
pass
Expand All @@ -846,7 +846,7 @@ def list_app(self, type="user"):
e.g. [('com.apple.mobilesafari', 'Safari', '8.0'), ...]
"""
if not self.is_local_device:
raise RuntimeError("Can noly use this method in local device now, not remote device.")
raise RuntimeError("Can only use this method in local device now, not remote device.")
return TIDevice.list_app(self.udid, type=type)

def app_state(self, bundle_id):
Expand Down

0 comments on commit bf49dfa

Please sign in to comment.