Skip to content

Commit 3e99789

Browse files
committed
fix the tests
1 parent b77becc commit 3e99789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functions/test_row_to_names.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_row_to_names_delete_above_with_resetting_index(dataframe):
5555
"""Test that executes row_to_names while deleting the all rows
5656
above the given row index while resetting the index"""
5757
df = dataframe.row_to_names(2, remove_rows_above=True, reset_index=True)
58-
expected_index = pd.RangeIndex(start=0, stop=8, step=1)
58+
expected_index = pd.RangeIndex(start=0, stop=7, step=1)
5959
pd.testing.assert_index_equal(df.index, expected_index)
6060

6161

@@ -64,5 +64,5 @@ def test_row_to_names_delete_the_row_with_resetting_index(dataframe):
6464
"""Test that executes row_to_names while deleting the given row
6565
index while resetting the index"""
6666
df = dataframe.row_to_names(2, remove_row=True, reset_index=True)
67-
expected_index = pd.RangeIndex(start=0, stop=7, step=1)
67+
expected_index = pd.RangeIndex(start=0, stop=8, step=1)
6868
pd.testing.assert_index_equal(df.index, expected_index)

0 commit comments

Comments
 (0)