TST: timeseries tests reorg (original) (raw)
Datetime
- We have some DatetimeIndex tests in here and some in here and a lot here (PR #14854: DatetimeIndex compiled together in test_datetime.py #15266)
we can separate these out to a single file in pandas/tests/indexes/test_datetime.py
The Base class (which powers lots of tests for the sub-classes DatetimeIndex, PeriodIndex, TimedeltaIndex), can move to pandas/tests/indexes/tests_datetimelike.py (and merge with the existing Datetimelike class).
- create a
pandas/tests/scalar/test_timestamp.pywithTimestampspecific tests
There are a lot of tests also in tseries/test_tslib.py, that can be merged intotest_timestamp.py - the residuals (from
tests_timeseries.pyare Series tests speficially, these can move topandas/tests/series/test_timeseries.py
Legacy Tests
- timeseries_legacy need a look, but can prob be deleted
Period
- same idea with Period, the actual
Periodtests can be moved totests/scalar/test_period.py, but move the index tests totests/indexes/test_period.py(which can be stripped from here and here)