-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix linter errors & ignore unwanted errors in tests
- Loading branch information
1 parent
c3f72c8
commit 977c808
Showing
6 changed files
with
41 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"cSpell.words": [ | ||
"capsys", | ||
"sadb", | ||
"scrcpy", | ||
"screencap", | ||
|
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 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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
"""Test get devices is returning the correct devices""" | ||
#!/usr/bin/python3 | ||
|
||
#pylint: disable=missing-function-docstring, wrong-import-position | ||
|
||
# Created by: Seamus Sloan | ||
# Last Edited: July 10, 2023 | ||
|
||
import sys | ||
sys.path.append("..") | ||
from sadb import split_get_devices | ||
|
||
def test_get_devices_returns_correct_three_devices(testDevices): | ||
devices = split_get_devices(testDevices(3)) | ||
def test_get_devices_returns_correct_three_devices(test_devices): | ||
devices = split_get_devices(test_devices(3)) | ||
print(devices) | ||
assert devices == ['FA79J1A00421', 'ZY223TDZ43', 'HT4CJ0203660'] | ||
|
||
|
||
def test_get_devices_returns_correct_five_devices(testDevices): | ||
devices = split_get_devices(testDevices(5)) | ||
def test_get_devices_returns_correct_five_devices(test_devices): | ||
devices = split_get_devices(test_devices(5)) | ||
print(devices) | ||
assert devices == ["FA79J1A00421", "ZY223TDZ43", | ||
"HT4CJ0203660", "R58M45YME1R", "emulator-5554"] | ||
|
||
|
||
def test_get_devices_returns_correct_single_device(testDevices): | ||
devices = split_get_devices(testDevices(1)) | ||
def test_get_devices_returns_correct_single_device(test_devices): | ||
devices = split_get_devices(test_devices(1)) | ||
print(devices) | ||
assert devices == ['FA79J1A00421'] | ||
|
||
|
||
def test_get_devices_returns_correct_no_devices(testDevices): | ||
devices = split_get_devices(testDevices(0)) | ||
def test_get_devices_returns_correct_no_devices(test_devices): | ||
devices = split_get_devices(test_devices(0)) | ||
print(devices) | ||
assert devices == [] |
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