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: use frame_or_series for some tz_localize/tz_convert tests #38756

Merged
merged 2 commits into from
Dec 28, 2020

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

import pandas._testing as tm


class TestTZConvert:
def test_frame_tz_convert(self):
def test_tz_convert(self, frame_or_series):
Copy link
Contributor

Choose a reason for hiding this comment

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

any appetite for moving these shared tests back to generic/methods? or else we just document that they are always in the frame/ 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.

last time we discussed this we were leaning towards getting rid of generic/methods and moving those back to frame/methods

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah totally fine. agreed generic is not a great place. just let's document that's where we have combined tests (doesn't have to be here).

Copy link
Member Author

Choose a reason for hiding this comment

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

the test org document we made a couple months ago says that frame_or_series tests go in with the frame tests

@jreback jreback added the Testing pandas testing functions or related to the test suite label Dec 28, 2020
@jreback jreback added this to the 1.3 milestone Dec 28, 2020
@jreback jreback merged commit 8ff5c42 into pandas-dev:master Dec 28, 2020
@jbrockmendel jbrockmendel deleted the tst-26 branch December 28, 2020 23:27
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
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.

2 participants