Skip to content

Commit 79d5ba1

Browse files
parameterize series getitem int key test
1 parent c754d96 commit 79d5ba1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/system/small/test_series.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,18 @@ def test_series___getitem__(scalars_dfs, index_col, key):
212212
pd.testing.assert_series_equal(bf_result.to_pandas(), pd_result)
213213

214214

215-
def test_series___getitem___with_int_key(scalars_dfs):
215+
@pytest.mark.parametrize(
216+
("key",),
217+
(
218+
(-2,),
219+
(-1,),
220+
(0,),
221+
(1,),
222+
),
223+
)
224+
def test_series___getitem___with_int_key(scalars_dfs, key):
216225
col_name = "int64_too"
217226
index_col = "string_col"
218-
key = -1
219227
scalars_df, scalars_pandas_df = scalars_dfs
220228
scalars_df = scalars_df.set_index(index_col, drop=False)
221229
scalars_pandas_df = scalars_pandas_df.set_index(index_col, drop=False)

0 commit comments

Comments
 (0)