lichess-bot-devs/lichess-bot

Add tests for specific functions

Open

#920 opened on Mar 4, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (562 forks)auto 404
good first issue

Repository metrics

Stars
 (1,054 stars)
PR merge metrics
 (PR metrics pending)

Description

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:

  • 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.)

Contributor guide