Skip to content

Commit

Permalink
DOCS: Add docstrings to fixtures in /indexes/interval/test_constructo…
Browse files Browse the repository at this point in the history
…rs.py (#59288)

Add docstrings to fixtures in /indexes/interval/test_constructors.py file.
  • Loading branch information
ivonastojanovic committed Jul 22, 2024
1 parent dd464e2 commit dd32055
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pandas/tests/indexes/interval/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ class TestFromArrays(ConstructorTests):

@pytest.fixture
def constructor(self):
"""Fixture for IntervalIndex.from_arrays constructor"""
return IntervalIndex.from_arrays

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

@pytest.fixture
def constructor(self):
"""Fixture for IntervalIndex.from_breaks constructor"""
return IntervalIndex.from_breaks

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

@pytest.fixture
def constructor(self):
"""Fixture for IntervalIndex.from_tuples constructor"""
return IntervalIndex.from_tuples

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

@pytest.fixture
def constructor(self):
"""Fixture for IntervalIndex class constructor"""
return IntervalIndex

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

0 comments on commit dd32055

Please sign in to comment.