testsAndMisc/python_pkg
Krzysztof kuhy Rudnicki 2ef6de9702 feat(tests): improve keyboard_coop test coverage to 97%
- Add test for JSONDecodeError fallback dictionary loading
- Add test for game initialization (__init__)
- Add tests for handle_click on letter, enter button, and reset button
- Add tests for drawing methods (_draw_text_line, _draw_button, _draw_keyboard, _draw_ui)
- Add extensive tests for game loop (run) covering:
  - QUIT event handling
  - Mouse click events
  - ENTER key submission
  - R key reset
  - Letter key presses
  - Right click ignored
  - Special key ignored
  - Unknown event type ignored

Coverage improved from 58% to 97%. Remaining uncovered lines are:
- Line 351: Unreachable defensive code (force submit when no moves)
- Lines 398-404: Unreachable dead code (hover color branch)
2025-12-01 20:10:41 +01:00
..
download_cats Add tests for multiple python_pkg modules 2025-12-01 19:49:44 +01:00
extract_links Improve test coverage for multiple modules 2025-12-01 19:59:11 +01:00
keyboard_coop feat(tests): improve keyboard_coop test coverage to 97% 2025-12-01 20:10:41 +01:00
lichess_bot Improve lichess_bot utils.py test coverage to 100% 2025-12-01 20:02:05 +01:00
mock_server Add tests for multiple python_pkg modules 2025-12-01 19:49:44 +01:00
pdfCentered refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
random_jpg Add tests for multiple python_pkg modules 2025-12-01 19:49:44 +01:00
randomize_numbers Add tests for multiple python_pkg modules 2025-12-01 19:49:44 +01:00
scrape_website Improve test coverage for multiple modules 2025-12-01 19:59:11 +01:00
screen_locker fix: remove all pylint disable comments and enable all meta checks 2025-12-01 16:22:03 +01:00
split Add tests for multiple python_pkg modules 2025-12-01 19:49:44 +01:00
stockfish_analysis fix(lint): fix G004 and PTH123 violations across codebase 2025-11-30 23:57:49 +01:00
tag_divider Improve test coverage for multiple modules 2025-12-01 19:59:11 +01:00
__init__.py refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
.gitignore refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00