Skip to content

TST: timeseries tests reorg #14854

Closed
Closed
@jreback

Description

@jreback

Datetime

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.py with Timestamp specific tests
    There are a lot of tests also in tseries/test_tslib.py, that can be merged into test_timestamp.py

  • the residuals (from tests_timeseries.py are Series tests speficially, these can move to pandas/tests/series/test_timeseries.py

Legacy Tests

Period

  • same idea with Period, the actual Period tests can be moved to tests/scalar/test_period.py, but move the index tests to tests/indexes/test_period.py (which can be stripped from here and here)

Timedelta

  • same idea with Timedelta, the actual Timedelta tests can be moved to tests/scalar/test_timedelta.py but move the index tests to tests/indexes/test_timedelta.py (which can be stripped from here and here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions