Refactoring binding python test#805
Conversation
|
🎉 This PR is now ready for review! |
tnull
left a comment
There was a problem hiding this comment.
Hmm, honestly the only real change worth considering is the move to the event_handling method (though we'd want to rename it to something like expect_event).
I'm afraid everything else here looks like unnecessary code changes that don't really do anything substantially different and hence are not worth the churn.
|
I understand, thanks for the review. I'll be focused on the expect event function and try to make some improvments about some cases when a specific return is expected too. |
tnull
left a comment
There was a problem hiding this comment.
Okay, but there are still a lot of changes in this PR that aren't connected to the expect_event method transition. Please revert them for now.
|
thanks for various suggestions, the history of change is more clear and all the refactoring updates are focused around the various expected event handler.
|
|
Thanks for the PR. Please squash the commits into one descriptive commit for a cleaner commit history |
6dcb7f9 to
38a7cde
Compare
38a7cde to
508629f
Compare
|
Hello @Camillarhi, Thanks, I think it is good for the commit history now. Commits squashed |
Not really, it isn't. There are still two commits in the PR, with the first being unrelated, and the content of the second isn't clean as well. You can use this as guidance on writing commit messages https://cbea.ms/git-commit/ |
b68ff82 to
dfa4877
Compare
|
@Camillarhi thanks for the resource ! you can check now please. Thanks. |
Yes, it is better, few small grammar nits in the commit message - 'Added an expected_event function', 'This improves', and 'duplicating the code'" |
dfa4877 to
2257d14
Compare
Added an expected_event function to better handle various events in the same block of code instead of duplicating the code for event listening. This improves the code readability and clarity.
2257d14 to
4477ca7
Compare
Truly appreciate. :) it is fixed now but the VSS test is still failing, I have i little Idea about why. Is it interesting to fix it in this case ? cause I've seen a lot of merged PR with the VSS test failure. |
I'd say separate PR for the VSS test, probably worth a deeper look before touching it. |
Thanks for the feedback. |
Hello @tnull x @enigbe
In this Pull Request, I'd refactored the python binding test by introducing parallelism and by avoiding code duplication specially with event tracking and handling.
Thanks for having time to review the topic and send me a feedback if i need to make some specific action.