Skip to content

Commit

Permalink
add missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Mar 28, 2023
1 parent cddf7ff commit 445c964
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 14 additions & 0 deletions tests/test_types.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Created on Tue Mar 28 2023 15:19:35 by codeskyblue
"""

from tidevice._types import DeviceInfo


def test_device_info():
info = DeviceInfo.from_json({"udid": "123", "DeviceID": 1, "conn_type": "usb", "extra": "foo"})
assert info.udid == "123"
assert info.device_id == 1
assert info.conn_type == "usb"
1 change: 0 additions & 1 deletion tidevice/_instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,6 @@ def app_launch(self,
code = self.make_channel(self._SERVICE_PROCESS_CONTROL)
method = "launchSuspendedProcessWithDevicePath:bundleIdentifier:environment:arguments:options:"
app_path = "" # not used, just pass empty string
#app_args = [] # not used, just pass empty array

options = {
# don't suspend the process after starting it
Expand Down

0 comments on commit 445c964

Please sign in to comment.