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

Create generic MockState object for all Mock classes #48

Open
LevBernstein opened this issue Oct 20, 2024 · 0 comments
Open

Create generic MockState object for all Mock classes #48

LevBernstein opened this issue Oct 20, 2024 · 0 comments
Labels
testing For use in bb_test with pytest

Comments

@LevBernstein
Copy link
Owner

Almost all Nextcord classes that require mocking have a _state attribute. Each mock classes currently implements its own version of a mock nextcord.state.ConnectionState to handle everything references to _state should do. Ideally, there would be only one MockConnectionState class defined, with each class calling that mock state class.

@LevBernstein LevBernstein added the testing For use in bb_test with pytest label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing For use in bb_test with pytest
Projects
None yet
Development

No branches or pull requests

1 participant