-
Notifications
You must be signed in to change notification settings - Fork 16
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
updating testing approach for MedianImputer Transformer #220
Conversation
I have left a few tests unchanged/haven't removed them. These are:
Let me know if any of these need to be removed :) |
|
||
@pytest.mark.parametrize("weight", (0, ["a"], {"a": 10})) | ||
def test_weight_arg_errors(self, weight): | ||
def test_weight_arg_errors( |
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.
agree with leaving this in until issue is resolved
expected_call_args, | ||
): | ||
x.transform(df) | ||
|
||
@pytest.mark.parametrize( |
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.
Think this one is covered by the GenerateImputerTransform tests?
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.
Same with the next 2 - though maybe we can parametrize the inherited test to work with and without weights?
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.
Thanks for catching this :) I have now removed test_nulls_imputed_correctly_1 and test_nulls_imputed_correctly_2 as well as expected_df_1 and expected_df_2, here: 2d7b045. Regarding testing with and without weights, perhaps it's best to add this functionality as part of #221 so that all transformers with weights can have this functionality? So, for now, I have renamed test_nulls_imputed_correctly_3 to test_nulls_imputed_correctly_weights and not deleted it. Let me know if all this makes sense!
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.
makes sense, thanks RJ :)
Connected to #150
Moved testing for MedianImputer Transformer to new approach