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

PYTHON-3516 Improve test EventListener api #1114

Merged
merged 4 commits into from Nov 14, 2022

Conversation

ShaneHarvey
Copy link
Member

@ShaneHarvey ShaneHarvey commented Nov 11, 2022

Benefit, EventListener now is more well typed and encapsulated. I also added inheritance of BaseListener so that the wait_for_event/matching/etc.. apis are available as well.

I've also migrated all usages of the old api.

@ShaneHarvey ShaneHarvey marked this pull request as ready for review November 11, 2022 23:18
@ShaneHarvey
Copy link
Member Author

Note: almost all of these changes were done with PyCharm's find/replace.

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ShaneHarvey ShaneHarvey merged commit 79aa5e6 into mongodb:master Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants