forked from alibaba/tidevice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request alibaba#1 from alibaba/main
Merge alibaba/tidevice Former-commit-id: 9b801da
- Loading branch information
Showing
14 changed files
with
318 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Created on Mon Jan 25 2021 10:42:05 by codeskyblue | ||
""" | ||
|
||
import pytest | ||
import os | ||
|
||
|
||
curdir = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
|
||
@pytest.fixture | ||
def wda_filepath(): | ||
return os.path.join(curdir, "testdata/WebDriverAgentRunner.ipa") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Created on Mon Jan 25 2021 10:38:39 by codeskyblue | ||
""" | ||
|
||
from tidevice._ipautil import IPAReader, IPAError | ||
|
||
|
||
|
||
def test_get_infoplist(wda_filepath: str): | ||
ir = IPAReader(wda_filepath) | ||
assert ir.get_bundle_id() == "com.facebook.WebDriverAgentRunner.xctrunner" | ||
|
||
data = ir.get_mobileprovision() | ||
assert "Version" in data | ||
assert data['Version'] == 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
49a9ae763db6c7d29f67d720ad9fda87a46bd8a5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.