testsAndMisc/python_pkg/screen_locker/tests
Krzysztof kuhy Rudnicki b96f6801b6 security: harden digital-wellbeing bypass vectors
- Screen locker: disable VT switching (Ctrl+Alt+Fn) via setxkbmap
  srvrkeys:none on startup; restore on close (production mode only).
  Gracefully skips if setxkbmap is not installed (shutil.which).
  Tests: 7 new tests, 100% branch coverage maintained.

- Midnight shutdown: restore real schedule values (Mon-Wed 21:00,
  Thu-Sun 22:00, morning end 05:00); re-enable the three commented-out
  leniency checks in check_schedule_protection(); self-lock script with
  chattr +i at end of enable_midnight_shutdown().

- Hosts install: add UNBLOCK_STATE_FILE tracking for whitelisted domains;
  check_unblock_entries_protection() blocks installation if the unblock
  list grows; save state after install; self-lock install.sh and
  generate_hosts_file.sh with chattr +i.
2026-05-16 15:41:40 +02:00
..
__init__.py Add comprehensive tests for stockfish_analysis (100% coverage) 2025-12-02 22:58:06 +01:00
conftest.py security: harden digital-wellbeing bypass vectors 2026-05-16 15:41:40 +02:00
test_adb_and_phone.py refactor(linux_configuration): move remaining dirs + scripts/ to meta/ 2026-05-15 00:53:01 +02:00
test_early_bird.py feat(screen-locker): add early-bird workout checks and phone verification updates 2026-05-01 19:07:34 +02:00
test_init_and_log.py Apply focus-mode, screen-locker, and steam backlog updates 2026-05-03 22:41:53 +02:00
test_log_integrity.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
test_phone_check_unlock.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
test_phone_verification_part2.py Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
test_shutdown_part2.py Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
test_shutdown_part3.py Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
test_sick_features.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
test_sick_tracker.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
test_time_check.py feat(screen_locker): harden bypass prevention 2026-04-09 21:44:13 +02:00
test_ui_and_timers_part2.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
test_ui_and_timers.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
test_ui_flows_part2.py Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
test_verify_workout.py refactor: split oversized SBE modules, extend screen locker, and enhance Horatio demo 2026-03-29 22:50:24 +02:00
test_vt_switching.py security: harden digital-wellbeing bypass vectors 2026-05-16 15:41:40 +02:00
test_wake_shutdown.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
test_wake_skip.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00