wake-alarm/wake_alarm/tests
Krzysztof kuhy Rudnicki 3a2e63af9c Migrate wake_alarm to the shared gatelock backend
Third and final leg of the diet_guard -> screen-locker -> wake_alarm
gatelock extraction. WakeAlarm now composes gatelock.GateRoot +
LockWindow(mode="soft") instead of driving tk.Tk() directly, and moves
hardware teardown into on_close() so it runs on every exit path
(including SIGTERM), closing the prior gap where killing the process
left fans maxed. _state.py's HMAC import moves to gatelock.log_integrity,
the last call site of python_pkg.shared.log_integrity, which is deleted.

Manually verified on the real display: fullscreen overlay renders,
xdotool-typed input reaches the dismiss-code Entry (mode="soft" keeps
the existing typing-focus behavior), and SIGTERM exits within ~0.4s
while restoring hardware state. Full repo suite: 949 passed, 100%
branch coverage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A7vbgtFfZmfxJtN5DdtJky
2026-06-22 07:33:49 +02:00
..
__init__.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
test_alarm_audio.py refactor: split wake_alarm modules, fix ruff violations, enforce global coverage 2026-05-30 22:13:32 +02:00
test_alarm_challenges.py refactor: split wake_alarm modules, fix ruff violations, enforce global coverage 2026-05-30 22:13:32 +02:00
test_alarm_display.py feat: split oversized modules for 500-line limit, fix kasa coverage gap 2026-06-14 07:19:37 +02:00
test_alarm_part2.py Migrate wake_alarm to the shared gatelock backend 2026-06-22 07:33:49 +02:00
test_alarm_part3.py Migrate wake_alarm to the shared gatelock backend 2026-06-22 07:33:49 +02:00
test_alarm_part4.py Migrate wake_alarm to the shared gatelock backend 2026-06-22 07:33:49 +02:00
test_alarm_sinks.py refactor: split wake_alarm modules, fix ruff violations, enforce global coverage 2026-05-30 22:13:32 +02:00
test_alarm.py Migrate wake_alarm to the shared gatelock backend 2026-06-22 07:33:49 +02:00
test_smart_plug.py wake_alarm: Tapo P110 plug control, fan ramp via sudo, loud warnings 2026-05-23 19:51:26 +02:00
test_state.py feat: split oversized modules for 500-line limit, fix kasa coverage gap 2026-06-14 07:19:37 +02:00