Skip to content

Add tests for specific functions #920

Open
@MarkZH

Description

@MarkZH

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions