-
Notifications
You must be signed in to change notification settings - Fork 39
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
call pook.off in the end of pook.activate wrapper function #145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the issue and PR @shift0965 🙏 Can you add a unit test for this fix? You will also need to update activate_async
to fix the same problem for async tests: https://github.com/h2non/pook/blob/master/src/pook/activate_async.py#L26
We'll need a unit test for each as well. If you would like guidance on adding the tests, let me know and I can give some pointers.
Thank you for you feedback! I just added test cases for each scenario and let me know if there are any further adjustments you like me to make. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! One small change needed to get the tests to run (the test function needs to be async), but I'll commit that for you and then CI should pass and I can merge and release today 🙂
Thanks again for the contribution 🎉
This PL is for this issue