fix: resolve flake8 E402/F401 in test file
Lint / Python (flake8) (push) Successful in 42s
Test / Python Tests (pytest) (push) Successful in 55s
Lint / Notify on failure (push) Has been skipped
Security / Python Security (bandit) (push) Successful in 46s

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-04-17 10:28:29 -04:00
parent 90dd8f3390
commit 5ce5593f4a
+5 -3
View File
@@ -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')