Skip to content

TST improve metadata routing tests - #29226

Merged
OmarManzoor merged 25 commits into
scikit-learn:mainfrom
adrinjalali:slep6/tests
Jun 14, 2024
Merged

OmarManzoor merged 25 commits into
scikit-learn:mainfrom
adrinjalali:slep6/tests

Conversation

@adrinjalali

Copy link
Copy Markdown
Member

This improves the tests for metadata routing in the way things are recorded and checked in test estimators.

This came up when working on Pipeline's transform_input (#28901) and made finding a few issues much easier.

@glemaitre @OmarManzoor this should be easy-ish to merge, and would make the pipeline PR much smaller and easier to review, and should help @adam2392 with another SLEP6 PR.

@github-actions

github-actions Bot commented Jun 10, 2024 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 7b75a8e. Link to the linter CI: here

@adam2392 adam2392 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks for the PR to make the metadata testing easier.

Comment thread sklearn/tests/metadata_routing_common.py Outdated
Comment thread sklearn/tests/metadata_routing_common.py Outdated
Comment thread sklearn/tests/metadata_routing_common.py Outdated
adrinjalali and others added 3 commits June 10, 2024 16:29
Co-authored-by: Adam Li <adam2392@gmail.com>
Co-authored-by: Adam Li <adam2392@gmail.com>
Co-authored-by: Adam Li <adam2392@gmail.com>
@glemaitre
glemaitre self-requested a review June 10, 2024 14:39

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I only have one portion that I don't recall what we are doing there.

Comment thread sklearn/tests/metadata_routing_common.py Outdated
Comment thread sklearn/tests/metadata_routing_common.py Outdated
Comment thread sklearn/tests/metadata_routing_common.py Outdated
Comment thread sklearn/tests/metadata_routing_common.py Outdated
Comment thread sklearn/tests/metadata_routing_common.py
Comment thread sklearn/tests/test_metaestimators_metadata_routing.py

@adam2392 adam2392 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It LGTM and I just tried it out on #28494

@adrinjalali

Copy link
Copy Markdown
Member Author

@OmarManzoor you think you could have a look and hopefully merge maybe?

@OmarManzoor

Copy link
Copy Markdown
Contributor

@adrinjalali Sure I'll have a look soon.

@OmarManzoor OmarManzoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @adrinjalali

I just have one question.

Comment thread sklearn/tests/test_metaestimators_metadata_routing.py Outdated
@OmarManzoor
OmarManzoor enabled auto-merge (squash) June 14, 2024 10:03
@OmarManzoor
OmarManzoor merged commit 72844cd into scikit-learn:main Jun 14, 2024
@adrinjalali
adrinjalali deleted the slep6/tests branch June 14, 2024 10:50
@jeremiedbb jeremiedbb mentioned this pull request Jul 2, 2024
11 tasks done
@StefanieSenger StefanieSenger added the Metadata Routing all issues related to metadata routing, slep006, sample props label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants