From c3f72c85d716a70e911b7aa72c85c6c570435184 Mon Sep 17 00:00:00 2001 From: Seamus Date: Mon, 23 Oct 2023 17:37:10 -0400 Subject: [PATCH] fix broken tests --- tests/test_commands.py | 3 +-- tests/test_get_devices.py | 2 +- tests/test_select_device.py | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index 7c052c4..38d2f56 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -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] diff --git a/tests/test_get_devices.py b/tests/test_get_devices.py index 87f1b14..4c875ea 100644 --- a/tests/test_get_devices.py +++ b/tests/test_get_devices.py @@ -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)) diff --git a/tests/test_select_device.py b/tests/test_select_device.py index ce30fd4..ac8374c 100644 --- a/tests/test_select_device.py +++ b/tests/test_select_device.py @@ -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)