Refactors for component_class loops to use pytest.mark.parametrize#3622
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3622 +/- ##
=====================================
Coverage 99.7% 99.7%
=====================================
Files 335 335
Lines 33508 33508
=====================================
Hits 33386 33386
Misses 122 122
Continue to review full report at Codecov.
|
|
hey @harshvardhanb25 - thanks for contributing! We need to manually approve your CI runs as you're a first time contributor but I just kicked them off. Please take a look at the failing CI and let me know if you have any questions on fixing them. Looks like you will need to update the release notes to pass the |
|
Hi @jeremyliweishih I have updated the release notes. However, when I run pylint on componet_tests.py, I get several messages, most of which have nothing to do with the changes I have made to the code. Could you please guide me on how to fix this? |
|
@harshvardhanb25 in the EvalML repo you can run |
|
@jeremyliweishih I think this should be it. I have updated the release notes and run the lint hooks. Thanks for your help! |
|
@harshvardhanb25 no worries! I will get to the review soon - thanks for helping out. |
jeremyliweishih
left a comment
There was a problem hiding this comment.
@harshvardhanb25 great work on this! Just two suggestions:
- could you remove the test level
@pytest.mark.xfail? I think it is redundant with thepytest.xfail()calls within the test. - instead of the using the if statements to call
pytest.xfail()could we just use theconditionparameter so that we retain information on why these cases were allowed to fail.
Point 1 is the important one but take a shot at point 2 (I can approve once point 1 is fixed 😄 )! Let me know how I can help.
|
@jeremyliweishih I think |
|
@harshvardhanb25 I think you're correct! Thats my mistake 😄 will review once CI passes and will also get you another reviewer tmr. Thanks! |
|
@jeremyliweishih thanks for all your help😄. Looking forward to contributing more to this repo. |
|
@harshvardhanb25 this PR LGTM, thanks for helping out! |
chukarsten
left a comment
There was a problem hiding this comment.
Thanks! If you want more commits for your Github portfolio, I plan on putting out some more of these refactoring type issues!
|
@chukarsten that would be awesome! I’m really looking to get my hands on some problems I can try fixing. |
Pull Request Description
Fixes: #3621
I have fixed most of the for loops to use
@pytest.mark.parametrizeand have also updated theif...continuecases to use@pytest.mark.xfail. One test case is currently failing but this was happening at the time of the initial fork.After creating the pull request: in order to pass the release_notes_updated check you will need to update the "Future Release" section of
docs/source/release_notes.rstto include this pull request by adding :pr:123.