Skip to content

Commit e0c6cab

Browse files
committed
Fix tests
1 parent 1d842aa commit e0c6cab

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

openandroidinstaller/tooling.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ def search_device(platform: str, bin_path: Path) -> SearchResult:
604604
# "grep",
605605
# "ro.product.device",
606606
]
607-
logger.info(f"Run command: {command}")
608607
device_prop = check_output(
609608
command,
610609
stderr=STDOUT,

tests/test_tooling.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ def test_search_device_success(mocker):
6262
)
6363

6464
# test linux
65-
device_code = search_device(
65+
search_result = search_device(
6666
platform="linux", bin_path=Path("openandroidinstaller/bin/")
6767
)
6868

69-
assert device_code == "sargo"
69+
assert search_result.device_code == "sargo"
7070

7171
# test windows
72-
device_code = search_device(
72+
search_result = search_device(
7373
platform="windows", bin_path=Path("openandroidinstaller/bin/")
7474
)
7575

76-
assert device_code == "sargo"
76+
assert search_result.device_code == "sargo"
7777

7878

7979
def test_search_device_failure(mocker):
@@ -87,11 +87,11 @@ def patched_check_output(*args, **kwargs):
8787
patched_check_output,
8888
)
8989

90-
device_code = search_device(
90+
search_result = search_device(
9191
platform="linux", bin_path=Path("openandroidinstaller/bin/")
9292
)
9393

94-
assert device_code is None
94+
assert search_result.device_code is None
9595

9696

9797
def test_run_command_success(mocker):

0 commit comments

Comments
 (0)