Skip to content

TST: Split test_offsets.py #30194

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

Closed
wants to merge 13 commits into from
Closed

TST: Split test_offsets.py #30194

wants to merge 13 commits into from

Conversation

Raalsky
Copy link

@Raalsky Raalsky commented Dec 10, 2019

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @Raalsky for the PR. making changes and splitting files in the same PR make review more difficult. Is is possible to do just the split or just the fixturisation in this PR and then a follow-on?



@pytest.fixture(params=[getattr(offsets, o) for o in BUSINESS_OFFSETS])
def business_offset_types(request):
"""
Fixture for all the datetime offsets available for a time series.
Copy link
Member

Choose a reason for hiding this comment

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

same docstring for business_offset_types as date_offset_types docstring. should differentiate.

Copy link
Author

Choose a reason for hiding this comment

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

Added in #31034

if issubclass(getattr(offsets, o), offsets.MonthOffset) and o != "MonthOffset"
]
)
def month_classes(request):
def business_month_classes(request):
"""
Fixture for month based datetime offsets available for a time series.
Copy link
Member

Choose a reason for hiding this comment

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

same docstring for business_month_classes as date_month_classes. should differentiate.

Copy link
Author

Choose a reason for hiding this comment

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

Added in #31034

@simonjayhawkins simonjayhawkins added the Testing pandas testing functions or related to the test suite label Dec 11, 2019
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

yeah if you can do a straight move first, then we can fixturize (or the other way around is ok too). having multiple targeted PRs is likely to make review / merge much faster.

@jbrockmendel
Copy link
Member

@Raalsky can you rebase

@jreback
Copy link
Contributor

jreback commented Jan 1, 2020

closing as stale. @Raalsky would love a PR that first moves, then followups to split / parameterize this. make small targeted PRs; we can then merge quickly.

@jreback jreback closed this Jan 1, 2020
@Raalsky
Copy link
Author

Raalsky commented Jan 15, 2020

Sorry for being off during the holidays. I've prepared the first step (move) test_offsets to test_date_offsets #31031 Will be following by adding fixtures and then business/date split.

@Raalsky
Copy link
Author

Raalsky commented Jan 15, 2020

Fixtures added in #31034

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.

TST: Split test_offsets.py
4 participants