Skip to content

Commit a89f94e

Browse files
committed
Tweaked test fixtures for VSCode compatibility
1 parent 534daa5 commit a89f94e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

library/tests/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Test Fixtures.
2+
3+
This __init__.py is required for relative import of test common tools and test discovery in VSCode
4+
5+
"""

library/tests/test_features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# noqa D100
22
import sys
33
import mock
4-
from tools import SMBusFakeAS7262, CALIBRATED_VALUES
4+
from .tools import SMBusFakeAS7262, CALIBRATED_VALUES
55

66

77
def _setup():

library/tests/test_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# noqa D100
22
import sys
3-
import mock
4-
from tools import SMBusFakeAS7262
3+
import mock # noqa: E402
4+
from .tools import SMBusFakeAS7262 # noqa: E402
55

66

77
def test_fw_info():

0 commit comments

Comments
 (0)