testsAndMisc/python_pkg/screen_locker
Krzysztof kuhy Rudnicki 790746476e Add comprehensive tests for screen_locker module (100% coverage)
- Add test_screen_lock.py with 65 tests covering:
  - ScreenLocker initialization (demo/production mode)
  - Workout data validation (running and strength)
  - Log file operations (reading/writing JSON)
  - UI state transitions and timer logic
  - ask_workout_type/running_details/strength_details methods
  - Error handling and TclError exceptions

- Add type annotation to workout_data in screen_lock.py

Coverage: 273 statements, 38 branches - 100%
2025-12-02 23:13:36 +01:00
..
tests Add comprehensive tests for screen_locker module (100% coverage) 2025-12-02 23:13:36 +01:00
__init__.py Fix test discovery and coverage for python_pkg modules 2025-12-02 22:33:34 +01:00
install_autostart.sh refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
install_systemd.sh refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
remove_autostart.sh refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
remove_systemd.sh refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
screen_lock.py Add comprehensive tests for screen_locker module (100% coverage) 2025-12-02 23:13:36 +01:00
workout_log.json Add comprehensive tests for lichess_bot main.py and lichess_api.py 2025-12-02 21:53:15 +01:00
workout-locker.service refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00