Skip to content

Commit

Permalink
Fixed test to ensure coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jun 7, 2021
1 parent 48cf010 commit 1dc9386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integrations/android_sdk/ADB/test_logcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def test_adb_failure(mock_sdk):
"If adb logcat fails, the error is caught."
# Mock out the run command on an adb instance
adb = ADB(mock_sdk, "exampleDevice")
adb.run = MagicMock(side_effect=subprocess.CalledProcessError(
mock_sdk.command.subprocess.run = MagicMock(side_effect=subprocess.CalledProcessError(
returncode=1, cmd='adb logcat'
))

with pytest.raises(BriefcaseCommandError):
adb.clear_log()
adb.logcat()

0 comments on commit 1dc9386

Please sign in to comment.