Skip to content

TST: parametrize cumulative tests #44214

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 1 commit into from
Oct 29, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

assert np.shape(cummin_xs) == np.shape(datetime_frame)

def test_cummax(self, datetime_frame):
@pytest.mark.parametrize("method", ["cumsum", "cumprod", "cummin", "cummax"])
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe a fixture for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

maybe if we start needing it in more than one place

@jreback jreback added the Testing pandas testing functions or related to the test suite label Oct 28, 2021
@simonjayhawkins simonjayhawkins added this to the 1.4 milestone Oct 29, 2021
tm.assert_frame_equal(cumsum, expected)

# works
def test_cumulative_ops_smoke(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

these smoketests are pretty non-useful tests......

Copy link
Member Author

Choose a reason for hiding this comment

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

yep. id be OK with getting rid of em

@jreback jreback merged commit 32ff424 into pandas-dev:master Oct 29, 2021
@jbrockmendel jbrockmendel deleted the tst-setitems branch October 29, 2021 15:18
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.

3 participants