Skip to content

Conversation

@skypher
Copy link
Contributor

@skypher skypher commented Nov 29, 2025

Summary

  • Add comprehensive test suite with 70 tests covering:
    • bot_db.py: Database operations, sightings, bans, cleanup
    • ztapi_client.py: API calls with mock aiohttp server
    • discord_bot.py: Formatting functions, player name validation, banlist checks
  • Add pytest CI workflow that runs on PRs and pushes to main

Test plan

  • All 70 tests pass locally
  • mypy passes on test files

- Add tests for bot_db.py (database operations, cleanup, bans)
- Add tests for ztapi_client.py (API calls with mock server)
- Add tests for discord_bot.py utility functions (formatting, validation)
- Add pytest CI workflow to run tests on PRs and pushes to main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant