homelab-codex-ws/services/ha-diag-agent/tests
Oskar Kapala 9ec43b6829 fix(ha-diag-agent): structlog event kwarg collision + replace aioresponses
- main.py: rename event= to ha_event= in _log.warning() — structlog treats
  'event' as a reserved positional arg; the old name caused TypeError when
  any check returned unhealthy results (events were still emitted, but the
  check was logged as check_error instead of check_unhealthy)
- tests/test_ha_client.py: replace aioresponses with unittest.mock — aioresponses
  0.7.8 is incompatible with aiohttp >=3.12 (missing stream_writer kwarg)
- pyproject.toml: remove aioresponses from dev dependencies

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 19:19:34 +02:00
..
integration feat(ha-diag-agent): WebSocketMonitor for real-time HA liveness 2026-05-29 15:00:18 +02:00
conftest.py feat(ha-diag-agent): three REST diagnostic checks + Phase 3 flag fixes 2026-05-29 14:43:10 +02:00
test_automation_failures.py feat(ha-diag-agent): three REST diagnostic checks + Phase 3 flag fixes 2026-05-29 14:43:10 +02:00
test_event_emitter.py feat(ha-diag-agent): test environment with dual HA Docker instances 2026-05-29 12:56:13 +02:00
test_ha_client.py fix(ha-diag-agent): structlog event kwarg collision + replace aioresponses 2026-06-03 19:19:34 +02:00
test_heartbeat_check.py feat(ha-diag-agent): UnavailableEntitiesCheck with root cause dedup 2026-05-29 13:41:55 +02:00
test_system_health.py feat(ha-diag-agent): three REST diagnostic checks + Phase 3 flag fixes 2026-05-29 14:43:10 +02:00
test_unavailable_entities.py feat(ha-diag-agent): three REST diagnostic checks + Phase 3 flag fixes 2026-05-29 14:43:10 +02:00
test_updates_available.py feat(ha-diag-agent): three REST diagnostic checks + Phase 3 flag fixes 2026-05-29 14:43:10 +02:00
test_websocket_monitor.py feat(ha-diag-agent): WebSocketMonitor for real-time HA liveness 2026-05-29 15:00:18 +02:00