Skip to content

TST/CLN: Test parametrizations #56737

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

Merged
merged 4 commits into from
Jan 6, 2024
Merged

TST/CLN: Test parametrizations #56737

merged 4 commits into from
Jan 6, 2024

Conversation

mroeschke
Copy link
Member

Moves similar parametrization setup to test bodies

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Clean labels Jan 4, 2024
@mroeschke mroeschke added this to the 3.0 milestone Jan 5, 2024
[np.array([20, 30, 40]), Index([20, 30, 40]), Series([20, 30, 40])],
ids=lambda x: type(x).__name__,
"klass",
[np.array, Index, Series],
Copy link
Member

Choose a reason for hiding this comment

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

we have a fixture for this already no? Can't we just use that?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't have one yet like this; only ones that parametrize over pandas constructors. I do think we should have a "1D constructor" fixture in the future

@phofl phofl merged commit d711b1d into pandas-dev:main Jan 6, 2024
@phofl
Copy link
Member

phofl commented Jan 6, 2024

thx @mroeschke

@mroeschke mroeschke deleted the cln/param4 branch January 8, 2024 00:06
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants