Skip to content

Commit 7d478dc

Browse files
committed
Flake8 test fixes
1 parent c56718f commit 7d478dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/ssdutil_test.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
import ssdutil.main as ssdutil # noqa: E402
88

9-
# Add mocked_libs path so that the file under test can load mocked modules from there
9+
# Add mocked_libs path so that the file can load mocked modules from there
1010
tests_path = os.path.dirname(os.path.abspath(__file__))
1111
mocked_libs_path = os.path.join(tests_path, "mocked_libs")
1212
sys.path.insert(0, mocked_libs_path)
1313

14-
from .mocked_libs import sonic_platform_base #.sonic_platform_base.sonic_ssd import ssd_generic
15-
#from .mocked_libs #.sonic_platform_base.sonic_storage import ssd
14+
from .mocked_libs import sonic_platform_base # noqa: E402,F401
15+
1616

1717
test_path = os.path.dirname(os.path.abspath(__file__))
1818
modules_path = os.path.dirname(test_path)
@@ -59,8 +59,8 @@ class TestSsdutil:
5959
@patch('sonic_py_common.device_info.get_paths_to_platform_and_hwsku_dirs',
6060
MagicMock(return_value=("test_path", "")))
6161
@patch('os.geteuid', MagicMock(return_value=0))
62-
@patch('sonic_platform_base.sonic_ssd.ssd_generic.SsdUtil', MagicMock(return_value=Ssd()))
63-
@patch('sonic_platform_base.sonic_storage.ssd.SsdUtil', MagicMock(return_value=Ssd()))
62+
@patch('sonic_platform_base.sonic_ssd.ssd_generic.SsdUtil', MagicMock(return_value=Ssd())) # noqa: E501
63+
@patch('sonic_platform_base.sonic_storage.ssd.SsdUtil', MagicMock(return_value=Ssd())) # noqa: E501
6464
def test_happy_path(self):
6565

6666
ssdutil.ssdutil()

0 commit comments

Comments
 (0)