Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to perform unit tests on the commands using pytest? #1604

Closed
modernNeo opened this issue Sep 21, 2018 · 1 comment
Closed
Labels
duplicate This is a duplicate of another issue or PR. question This is a question about the library

Comments

@modernNeo
Copy link

No description provided.

@modernNeo modernNeo changed the title is it possible to perform unit tests on the bot using pytest? is it possible to perform unit tests on the commands using pytest? Sep 21, 2018
@imayhaveborkedit
Copy link
Contributor

More or less a dupe of #197. Basically there's two ways to do this. Either capture and replay gateway events to simulate a connection to discord, or separate your logic from your command structure and test it on its own.

@dpy-manager-bot dpy-manager-bot added duplicate This is a duplicate of another issue or PR. question This is a question about the library labels Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This is a duplicate of another issue or PR. question This is a question about the library
Projects
None yet
Development

No branches or pull requests

3 participants