-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TST be more specific in test_estimator_checks #29834
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
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.
I think it makes sense. When we only add check_estimator
it was potentially great to make sure that we get the right error calling check_estimator
. Now that we use the parametrization, this is much better to have atomic tests as in this PR.
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!
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, but I was wondering why for some of the tests name
is "test"
while for others name
is the estimator name? Do we want to be consistent here though it may not really matter?
The name only matters when we check exact values of raised exceptions, otherwise it really doesn't matter. |
This doesn't add or remove any tests. It simply extracts a few tests into their own tests/functions, and uses the specific test instead of calling
check_estimator
which makes them resistant to changes in test orders and adding tests tocheck_estimator
.cc @adam2392 @Charlie-XIAO