Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seamus-sloan committed Oct 23, 2023
1 parent 2b05dea commit c3f72c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import sys
from unittest.mock import ANY, MagicMock, call, mock_open, patch
from conftest import DEVICE_IDS
sys.path.append(".")
from sadb import stop, start, clear, install, uninstall
from sadb import scrcpy, get_ip, screenshot, record, wifi, search

sys.path.append(".")

TEST_APK = "myApp.apk"
TEST_PACKAGE = "com.example.app"
TEST_DEVICE = DEVICE_IDS[0]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_get_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# Last Edited: July 10, 2023

import sys
from sadb import split_get_devices
sys.path.append("..")
from sadb import split_get_devices

def test_get_devices_returns_correct_three_devices(testDevices):
devices = split_get_devices(testDevices(3))
Expand Down
3 changes: 1 addition & 2 deletions tests/test_select_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
# Created by: Seamus Sloan
# Last Edited: July 10, 2023


import sys
from sadb import select_device
sys.path.append("..")
from sadb import select_device

def test_select_one_device(monkeypatch, testDeviceList):
monkeypatch.setattr('builtins.input', lambda _: 1)
Expand Down

0 comments on commit c3f72c8

Please sign in to comment.