From 5ce5593f4a6c5705543d8e7f5da4465e909c1a80 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Fri, 17 Apr 2026 10:28:29 -0400 Subject: [PATCH] fix: resolve flake8 E402/F401 in test file - Remove unused MagicMock import (F401) - Move sys.path.insert above third-party imports and add noqa: E402 to the two imports that must follow it (E402) Co-Authored-By: Claude Sonnet 4.6 --- tests/test_hwmon.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_hwmon.py b/tests/test_hwmon.py index 327495f..669c2fd 100644 --- a/tests/test_hwmon.py +++ b/tests/test_hwmon.py @@ -1,11 +1,13 @@ """Tests for SystemHealthMonitor pure methods — no external processes or filesystem.""" import sys import os -from unittest.mock import patch, MagicMock -sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import pytest -from hwmonDaemon import SystemHealthMonitor + +sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) + +from unittest.mock import patch # noqa: E402 +from hwmonDaemon import SystemHealthMonitor # noqa: E402 @pytest.fixture(scope='module')