3 Commits

Author SHA1 Message Date
jared 823ff18890 test: expand test coverage for manufacturer profiles and ticket classification
Lint / Python (flake8) (push) Successful in 1m14s
Test / Python Tests (pytest) (push) Successful in 1m29s
Lint / Notify on failure (push) Has been skipped
Security / Python Security (bandit) (push) Failing after 11m40s
Add 42 new tests covering _get_manufacturer_profile (Seagate/WD/Samsung/Toshiba/
OOS/Ridata/unknown), _should_monitor_attribute, _get_attribute_thresholds,
_get_issue_type, _get_impact_level, and _categorize_issue.

Toshiba MG08 prefix matching and the raised High_Fly_Writes/Command_Timeout
thresholds introduced in the previous commit are now covered by tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 19:52:59 -04:00
jared 5ce5593f4a 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>
2026-04-17 10:28:29 -04:00
jared 78691e6235 ci: add notify-failure, pytest with coverage, and 49 unit tests
Lint / Python (flake8) (push) Failing after 20s
Security / Python Security (bandit) (push) Successful in 25s
Test / Python Tests (pytest) (push) Successful in 57s
Lint / Notify on failure (push) Successful in 2s
- lint.yml: add notify-failure Matrix alert job
- test.yml: new workflow running pytest with pytest-cov for coverage
- .coveragerc: omit tests and site-packages from coverage
- .gitignore: ignore __pycache__ and .pyc files
- tests/test_hwmon.py: 49 unit tests covering SystemHealthMonitor
  (temperature parsing, service monitoring, disk usage, metric collection,
  dry run behaviour); uses unittest.mock to isolate from env/filesystem

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 16:25:23 -04:00