Skip to content

TST: 26807 split pandas/tests/tseries/offsets/test_offsets.py into multiple smaller test modules #38924

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 3 commits into from
Jan 3, 2021

Conversation

moink
Copy link
Member

@moink moink commented Jan 3, 2021

This is to address xref #26807 specifically for pandas/tests/tseries/offsets/test_offsets.py . I tried to get all the new modules below about 1000 lines and break it up in logical ways.

Other than moving code, I have changed some list construction for pytest parameterizing to be a tiny bit more compact by changing a bunch of sequential appends to a single list literal. Other than that no changes.

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

@moink moink added Testing pandas testing functions or related to the test suite Code Style Code style, linting, code_checks Frequency DateOffsets labels Jan 3, 2021
@jreback
Copy link
Contributor

jreback commented Jan 3, 2021

can you confirm before / after tests are the same number

@jreback jreback added this to the 1.3 milestone Jan 3, 2021
@moink
Copy link
Member Author

moink commented Jan 3, 2021

can you confirm before / after tests are the same number

Good question! At the time you wrote this I had 25 duplicate tests due to having 2 test classes inherit from common.Base with the same _offset. But now that I have fixed that, they have exactly the same number.

@jreback jreback merged commit 87542f0 into pandas-dev:master Jan 3, 2021
@jreback
Copy link
Contributor

jreback commented Jan 3, 2021

thanks @moink

@moink moink deleted the split_test_offsets branch January 5, 2021 17:03
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
Code Style Code style, linting, code_checks Frequency DateOffsets 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