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

Avaankha/pytest #44

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

avaankha
Copy link

@avaankha avaankha commented Dec 1, 2023

Closes #19
Automated tests using pytest and mocks/patching. Tests assert that PrepareBan/Unban return the correct enum given the test setup and that the specific guild.ban(user, reason) & guild.unban(user, reason) are called with the correct parameters. A test case for server activation has also been created.

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.

Create automated testing
1 participant