Add automated tests for all features - #14
Open
Nanosplitter wants to merge 2 commits into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add automated tests for all features in the repository.
tests/test_bot.pyto test thebot.pyfile.tests/test_cogs/test_aistuff.pyto test thecogs/aistuff.pyfile.tests/test_cogs/test_akinator.pyto test thecogs/akinator.pyfile.tests/test_cogs/test_birthday.pyto test thecogs/birthday.pyfile.tests/test_cogs/test_booktrack.pyto test thecogs/booktrack.pyfile.tests/test_cogs/test_caught.pyto test thecogs/caught.pyfile.tests/test_cogs/test_chat.pyto test thecogs/chat.pyfile.tests/test_cogs/test_chronophoto.pyto test thecogs/chronophoto.pyfile.tests/test_cogs/test_colors.pyto test thecogs/colors.pyfile.tests/test_cogs/test_dnd.pyto test thecogs/dnd.pyfile.tests/test_cogs/test_fun.pyto test thecogs/fun.pyfile.tests/test_cogs/test_geo.pyto test thecogs/geo.pyfile.tests/test_cogs/test_hangman.pyto test thecogs/hangman.pyfile.tests/test_cogs/test_help.pyto test thecogs/help.pyfile.tests/test_cogs/test_info.pyto test thecogs/info.pyfile.tests/test_cogs/test_memes.pyto test thecogs/memes.pyfile.tests/test_cogs/test_minesweeper.pyto test thecogs/minesweeper.pyfile.tests/test_cogs/test_moderation.pyto test thecogs/moderation.pyfile.tests/test_cogs/test_newcreations.pyto test thecogs/newcreations.pyfile.tests/test_cogs/test_poll.pyto test thecogs/poll.pyfile.tests/test_cogs/test_rps.pyto test thecogs/rps.pyfile.tests/test_cogs/test_steps.pyto test thecogs/steps.pyfile.tests/test_cogs/test_template.pyto test thecogs/template.pyfile.tests/test_cogs/test_tldr.pyto test thecogs/tldr.pyfile.tests/test_cogs/test_todo.pyto test thecogs/todo.pyfile.tests/test_cogs/test_translate.pyto test thecogs/translate.pyfile.tests/test_cogs/test_wisdom.pyto test thecogs/wisdom.pyfile.tests/test_models/test_birthday.pyto test themodels/birthday.pyfile.tests/test_models/test_book.pyto test themodels/book.pyfile.tests/test_models/test_caught.pyto test themodels/caught.pyfile.tests/test_models/test_personality.pyto test themodels/personality.pyfile.tests/test_models/test_step_log.pyto test themodels/step_log.pyfile.tests/test_models/test_todo.pyto test themodels/todo.pyfile.tests/test_noncommands/test_birthdayLoop.pyto test thenoncommands/birthdayLoop.pyfile.tests/test_noncommands/test_booktrackutils.pyto test thenoncommands/booktrackutils.pyfile.tests/test_noncommands/test_chat.pyto test thenoncommands/chat.pyfile.tests/test_config.pyto test theconfig.yamlfile.tests/test_requirements.pyto test therequirements.txtfile.tests/test_dockerfile.pyto test theDockerfile.tests/test_readme.pyto test theREADME.mdfile.For more details, open the Copilot Workspace session.