lichess-bot icon indicating copy to clipboard operation
lichess-bot copied to clipboard

Add tests for specific functions

Open MarkZH opened this issue 11 months ago • 0 comments

Right now, the only tests are integration tests that perform a complete run of lichess_bot_main() to check that there are no errors communicating with an engine and with a mocked version of the lichess.org servers. Individual functions could use unit tests, such as:

  • [x] database functions like get_lichess_cloud_move()
  • [ ] Lichess class methods to make sure they still return expected responses (bot scopes, profile data, bot opponent lists, etc.)

MarkZH avatar Mar 04 '24 10:03 MarkZH