Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed Jul 2, 2024
1 parent 3bd1895 commit e2dc1cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_pandas_utils/test_pandas_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ def test_add_lags_wrong_inputs(data, frame_func):
add_lags(invalid_df, ["X1"], 1)


@pytest.mark.parametrize("frame_func", [
pd.DataFrame,
lambda data: pl.DataFrame(data, strict=False),
lambda data: pl.LazyFrame(data, strict=False)
])
@pytest.mark.parametrize(
"frame_func",
[pd.DataFrame, lambda data: pl.DataFrame(data, strict=False), lambda data: pl.LazyFrame(data, strict=False)],
)
def test_add_lags_correct_df(data, frame_func):
test_df = frame_func(data)
expected = frame_func({"X1": [1, 2], "X2": ["178", "154"], "X1-1": [0, 1]})
Expand Down

0 comments on commit e2dc1cc

Please sign in to comment.