Skip to content
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

TST: pytest.mark.parameterize some tests #44776

Merged
merged 1 commit into from Dec 6, 2021

Conversation

mroeschke
Copy link
Member

  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Dec 6, 2021
@mroeschke mroeschke added this to the 1.4 milestone Dec 6, 2021
@@ -48,31 +48,28 @@ def test_reindex_level(self, multiindex_year_month_day_dataframe_random_data):
expected = ymd.groupby(level="month").transform(np.sum).T
tm.assert_frame_equal(result, expected)

def test_binops_level(self, multiindex_year_month_day_dataframe_random_data):
@pytest.mark.parametrize("opname", ["sub", "add", "mul", "div"])
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we parameterize these ops?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like we have a fixture with the dunder versions but not the functions versions. Plus I don't think all the fixture versions are supported here.

@jreback jreback merged commit 5da1b24 into pandas-dev:master Dec 6, 2021
@jreback
Copy link
Contributor

jreback commented Dec 6, 2021

thanks, small comment maybe worth doing in followup

@mroeschke mroeschke deleted the test/parameterize branch December 6, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants