Skip to content

Commit 5a6025c

Browse files
DOCS: Add docstrings to fixtures in /indexes/datetimelike_/test_equals.py (#59278)
Add docstrings to fixtures in /indexes/datetimelike_/test_equals.py file.
1 parent c3b72aa commit 5a6025c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/indexes/datetimelike_/test_equals.py

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_not_equals_misc_strs(self, index):
5252
class TestPeriodIndexEquals(EqualsTests):
5353
@pytest.fixture
5454
def index(self):
55+
"""Fixture for creating a PeriodIndex for use in equality tests."""
5556
return period_range("2013-01-01", periods=5, freq="D")
5657

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

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

148151
def test_equals2(self):

0 commit comments

Comments
 (0)