Skip to content

Commit 469110a

Browse files
parameterize series getitem int key test
1 parent 5fe145b commit 469110a

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
@@ -213,10 +213,18 @@ def test_series___getitem__(scalars_dfs, index_col, key):
213213
pd.testing.assert_series_equal(bf_result.to_pandas(), pd_result)
214214

215215

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

0 commit comments

Comments
 (0)