Skip to content

DOCS: Add docstrings to fixtures in /indexes/datetimelike_/test_equals.py #59278

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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pandas/tests/indexes/datetimelike_/test_equals.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def test_not_equals_misc_strs(self, index):
class TestPeriodIndexEquals(EqualsTests):
@pytest.fixture
def index(self):
"""Fixture for creating a PeriodIndex for use in equality tests."""
return period_range("2013-01-01", periods=5, freq="D")

# TODO: de-duplicate with other test_equals2 methods
Expand Down Expand Up @@ -91,6 +92,7 @@ def test_equals2(self, freq):
class TestDatetimeIndexEquals(EqualsTests):
@pytest.fixture
def index(self):
"""Fixture for creating a DatetimeIndex for use in equality tests."""
return date_range("2013-01-01", periods=5)

def test_equals2(self):
Expand Down Expand Up @@ -143,6 +145,7 @@ def test_not_equals_bday(self, freq):
class TestTimedeltaIndexEquals(EqualsTests):
@pytest.fixture
def index(self):
"""Fixture for creating a TimedeltaIndex for use in equality tests."""
return timedelta_range("1 day", periods=10)

def test_equals2(self):
Expand Down
Loading