Skip to content

Commit dd32055

Browse files
DOCS: Add docstrings to fixtures in /indexes/interval/test_constructors.py (#59288)
Add docstrings to fixtures in /indexes/interval/test_constructors.py file.
1 parent dd464e2 commit dd32055

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/indexes/interval/test_constructors.py

+4
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ class TestFromArrays(ConstructorTests):
210210

211211
@pytest.fixture
212212
def constructor(self):
213+
"""Fixture for IntervalIndex.from_arrays constructor"""
213214
return IntervalIndex.from_arrays
214215

215216
def get_kwargs_from_breaks(self, breaks, closed="right"):
@@ -282,6 +283,7 @@ class TestFromBreaks(ConstructorTests):
282283

283284
@pytest.fixture
284285
def constructor(self):
286+
"""Fixture for IntervalIndex.from_breaks constructor"""
285287
return IntervalIndex.from_breaks
286288

287289
def get_kwargs_from_breaks(self, breaks, closed="right"):
@@ -320,6 +322,7 @@ class TestFromTuples(ConstructorTests):
320322

321323
@pytest.fixture
322324
def constructor(self):
325+
"""Fixture for IntervalIndex.from_tuples constructor"""
323326
return IntervalIndex.from_tuples
324327

325328
def get_kwargs_from_breaks(self, breaks, closed="right"):
@@ -370,6 +373,7 @@ class TestClassConstructors(ConstructorTests):
370373

371374
@pytest.fixture
372375
def constructor(self):
376+
"""Fixture for IntervalIndex class constructor"""
373377
return IntervalIndex
374378

375379
def get_kwargs_from_breaks(self, breaks, closed="right"):

0 commit comments

Comments
 (0)