Skip to content

Add automated tests for all features - #14

Open
Nanosplitter wants to merge 2 commits into
mainfrom
add-automated-tests
Open

Add automated tests for all features#14
Nanosplitter wants to merge 2 commits into
mainfrom
add-automated-tests

Conversation

@Nanosplitter

@Nanosplitter Nanosplitter commented Oct 17, 2024

Copy link
Copy Markdown
Owner

Add automated tests for all features in the repository.

  • Bot Tests
    • Add tests/test_bot.py to test the bot.py file.
  • Cogs Tests
    • Add tests/test_cogs/test_aistuff.py to test the cogs/aistuff.py file.
    • Add tests/test_cogs/test_akinator.py to test the cogs/akinator.py file.
    • Add tests/test_cogs/test_birthday.py to test the cogs/birthday.py file.
    • Add tests/test_cogs/test_booktrack.py to test the cogs/booktrack.py file.
    • Add tests/test_cogs/test_caught.py to test the cogs/caught.py file.
    • Add tests/test_cogs/test_chat.py to test the cogs/chat.py file.
    • Add tests/test_cogs/test_chronophoto.py to test the cogs/chronophoto.py file.
    • Add tests/test_cogs/test_colors.py to test the cogs/colors.py file.
    • Add tests/test_cogs/test_dnd.py to test the cogs/dnd.py file.
    • Add tests/test_cogs/test_fun.py to test the cogs/fun.py file.
    • Add tests/test_cogs/test_geo.py to test the cogs/geo.py file.
    • Add tests/test_cogs/test_hangman.py to test the cogs/hangman.py file.
    • Add tests/test_cogs/test_help.py to test the cogs/help.py file.
    • Add tests/test_cogs/test_info.py to test the cogs/info.py file.
    • Add tests/test_cogs/test_memes.py to test the cogs/memes.py file.
    • Add tests/test_cogs/test_minesweeper.py to test the cogs/minesweeper.py file.
    • Add tests/test_cogs/test_moderation.py to test the cogs/moderation.py file.
    • Add tests/test_cogs/test_newcreations.py to test the cogs/newcreations.py file.
    • Add tests/test_cogs/test_poll.py to test the cogs/poll.py file.
    • Add tests/test_cogs/test_rps.py to test the cogs/rps.py file.
    • Add tests/test_cogs/test_steps.py to test the cogs/steps.py file.
    • Add tests/test_cogs/test_template.py to test the cogs/template.py file.
    • Add tests/test_cogs/test_tldr.py to test the cogs/tldr.py file.
    • Add tests/test_cogs/test_todo.py to test the cogs/todo.py file.
    • Add tests/test_cogs/test_translate.py to test the cogs/translate.py file.
    • Add tests/test_cogs/test_wisdom.py to test the cogs/wisdom.py file.
  • Models Tests
    • Add tests/test_models/test_birthday.py to test the models/birthday.py file.
    • Add tests/test_models/test_book.py to test the models/book.py file.
    • Add tests/test_models/test_caught.py to test the models/caught.py file.
    • Add tests/test_models/test_personality.py to test the models/personality.py file.
    • Add tests/test_models/test_step_log.py to test the models/step_log.py file.
    • Add tests/test_models/test_todo.py to test the models/todo.py file.
  • Non-Commands Tests
    • Add tests/test_noncommands/test_birthdayLoop.py to test the noncommands/birthdayLoop.py file.
    • Add tests/test_noncommands/test_booktrackutils.py to test the noncommands/booktrackutils.py file.
    • Add tests/test_noncommands/test_chat.py to test the noncommands/chat.py file.
  • Configuration Tests
    • Add tests/test_config.py to test the config.yaml file.
    • Add tests/test_requirements.py to test the requirements.txt file.
    • Add tests/test_dockerfile.py to test the Dockerfile.
    • Add tests/test_readme.py to test the README.md file.

For more details, open the Copilot Workspace session.

Add automated tests for all features in the repository.

* **Bot Tests**
  - Add `tests/test_bot.py` to test the `bot.py` file.
* **Cogs Tests**
  - Add `tests/test_cogs/test_aistuff.py` to test the `cogs/aistuff.py` file.
  - Add `tests/test_cogs/test_akinator.py` to test the `cogs/akinator.py` file.
  - Add `tests/test_cogs/test_birthday.py` to test the `cogs/birthday.py` file.
  - Add `tests/test_cogs/test_booktrack.py` to test the `cogs/booktrack.py` file.
  - Add `tests/test_cogs/test_caught.py` to test the `cogs/caught.py` file.
  - Add `tests/test_cogs/test_chat.py` to test the `cogs/chat.py` file.
  - Add `tests/test_cogs/test_chronophoto.py` to test the `cogs/chronophoto.py` file.
  - Add `tests/test_cogs/test_colors.py` to test the `cogs/colors.py` file.
  - Add `tests/test_cogs/test_dnd.py` to test the `cogs/dnd.py` file.
  - Add `tests/test_cogs/test_fun.py` to test the `cogs/fun.py` file.
  - Add `tests/test_cogs/test_geo.py` to test the `cogs/geo.py` file.
  - Add `tests/test_cogs/test_hangman.py` to test the `cogs/hangman.py` file.
  - Add `tests/test_cogs/test_help.py` to test the `cogs/help.py` file.
  - Add `tests/test_cogs/test_info.py` to test the `cogs/info.py` file.
  - Add `tests/test_cogs/test_memes.py` to test the `cogs/memes.py` file.
  - Add `tests/test_cogs/test_minesweeper.py` to test the `cogs/minesweeper.py` file.
  - Add `tests/test_cogs/test_moderation.py` to test the `cogs/moderation.py` file.
  - Add `tests/test_cogs/test_newcreations.py` to test the `cogs/newcreations.py` file.
  - Add `tests/test_cogs/test_poll.py` to test the `cogs/poll.py` file.
  - Add `tests/test_cogs/test_rps.py` to test the `cogs/rps.py` file.
  - Add `tests/test_cogs/test_steps.py` to test the `cogs/steps.py` file.
  - Add `tests/test_cogs/test_template.py` to test the `cogs/template.py` file.
  - Add `tests/test_cogs/test_tldr.py` to test the `cogs/tldr.py` file.
  - Add `tests/test_cogs/test_todo.py` to test the `cogs/todo.py` file.
  - Add `tests/test_cogs/test_translate.py` to test the `cogs/translate.py` file.
  - Add `tests/test_cogs/test_wisdom.py` to test the `cogs/wisdom.py` file.
* **Models Tests**
  - Add `tests/test_models/test_birthday.py` to test the `models/birthday.py` file.
  - Add `tests/test_models/test_book.py` to test the `models/book.py` file.
  - Add `tests/test_models/test_caught.py` to test the `models/caught.py` file.
  - Add `tests/test_models/test_personality.py` to test the `models/personality.py` file.
  - Add `tests/test_models/test_step_log.py` to test the `models/step_log.py` file.
  - Add `tests/test_models/test_todo.py` to test the `models/todo.py` file.
* **Non-Commands Tests**
  - Add `tests/test_noncommands/test_birthdayLoop.py` to test the `noncommands/birthdayLoop.py` file.
  - Add `tests/test_noncommands/test_booktrackutils.py` to test the `noncommands/booktrackutils.py` file.
  - Add `tests/test_noncommands/test_chat.py` to test the `noncommands/chat.py` file.
* **Configuration Tests**
  - Add `tests/test_config.py` to test the `config.yaml` file.
  - Add `tests/test_requirements.py` to test the `requirements.txt` file.
  - Add `tests/test_dockerfile.py` to test the `Dockerfile`.
  - Add `tests/test_readme.py` to test the `README.md` file.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Nanosplitter/DadBot?shareId=XXXX-XXXX-XXXX-XXXX).
…`, `chat`, and `chronophoto` cogs

* **`tests/test_cogs/test_aistuff.py`**
  - Add tests for `dalle`, `beefydalle`, `dadroid`, `epicrapbattle`, `geoteller`, `askfiregator`, `closedopinion`, `persona`, `newapod`, `whatsfordinner`, `onionarticle`, `monkeyspaw`, `talk`, and `summarize_pdf` commands

* **`tests/test_cogs/test_akinator.py`**
  - Add tests for `akinator` command and its button interactions

* **`tests/test_cogs/test_birthday.py`**
  - Add tests for `setbirthday` and `todaysbirthdays` commands

* **`tests/test_cogs/test_booktrack.py`**
  - Add tests for `startbook` and `list` commands

* **`tests/test_cogs/test_caught.py`**
  - Add tests for `caught` command

* **`tests/test_cogs/test_chat.py`**
  - Add tests for `chat`, `create`, `list`, and `save` commands

* **`tests/test_cogs/test_chronophoto.py`**
  - Add tests for `chronoplay` and `chrono` commands
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