testsAndMisc-archive/python_pkg/lichess_bot/tests
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
..
__init__.py refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
conftest.py fix(lint): fix S603 in engine.py and D100 in conftest.py 2025-11-30 23:43:34 +01:00
test_engine.py feat(tests): add comprehensive tests for lichess_bot engine and API 2025-12-01 20:41:51 +01:00
test_lichess_api.py feat(tests): add comprehensive tests for lichess_bot engine and API 2025-12-01 20:41:51 +01:00
test_puzzles.py fix(lint): fix G004 and PTH123 violations across codebase 2025-11-30 23:57:49 +01:00
test_utils.py refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
test_versioning.py Improve lichess_bot utils.py test coverage to 100% 2025-12-01 20:02:05 +01:00