mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 14:43:01 +02:00
Add comprehensive tests for lichess_bot main.py and lichess_api.py
- Fix test_process_game_event_game_end to properly mock engine - Fix test_handle_game tests to mock _run_analysis_subprocess to prevent hanging - Fix test_process_game_start_event to mock analysis subprocess - Add test_process_game_event_game_end_after_move to cover game end status path - Add test_process_game_event_color_unknown_on_gamefull to cover gameFull with spectator - Add tests for lichess_api.py covering spectator case and join_game_stream edge cases - Fix mypy type errors with Event and GameThreads type aliases Coverage: - lichess_api.py: 100% (was 98%) - main.py: 99% (branch partials for loop exits only)
This commit is contained in:
parent
6dc6b9c4f7
commit
4db978b67b
1093
python_pkg/lichess_bot/tests/test_main.py
Normal file
1093
python_pkg/lichess_bot/tests/test_main.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -22,5 +22,11 @@
|
||||
"workout_data": {
|
||||
"type": "strength"
|
||||
}
|
||||
},
|
||||
"2025-12-02": {
|
||||
"timestamp": "2025-12-02T19:52:07.899613+00:00",
|
||||
"workout_data": {
|
||||
"type": "strength"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user