testsAndMisc-archive/python_pkg
Krzysztof kuhy Rudnicki 1892fd171c feat(tests): add comprehensive tests for lichess_bot engine and API
- Add test_engine.py with 100% coverage for engine.py
  - Tests for Engine class initialization
  - Tests for choose_move with various scenarios
  - Tests for best move parsing and validation
  - Tests for checkmate and stalemate detection

- Add test_lichess_api.py with 98% coverage for lichess_api.py
  - Tests for API initialization and request handling
  - Tests for stream_events with proper infinite loop handling
  - Tests for challenge accept/decline
  - Tests for game streaming and move submission
  - Tests for rate limit handling and retry logic

- Remove unreachable return statement in lichess_api.make_move

Coverage: engine.py 17% -> 100%, lichess_api.py 0% -> 98%
2025-12-01 20:41:51 +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 refactor(keyboard_coop): remove dead/unreachable code 2025-12-01 20:15:40 +01:00
lichess_bot feat(tests): add comprehensive tests for lichess_bot engine and API 2025-12-01 20:41:51 +01:00
mock_server Add tests for multiple python_pkg modules 2025-12-01 19:49:44 +01:00
randomize_numbers refactor(randomize_numbers): use list comprehension to achieve 100% coverage 2025-12-01 20:19:02 +01:00
scrape_website Improve test coverage for multiple modules 2025-12-01 19:59:11 +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