Skip to content
Merged
5 changes: 4 additions & 1 deletion tests/plugins/test_mlflow_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@

from pathlib import Path

import mlflow
import numpy as np
import pytest

# Skip entire module if mlflow is not available (e.g., Python 3.14+)
mlflow = pytest.importorskip("mlflow")

from sklearn.base import BaseEstimator
from sklearn.linear_model import LinearRegression

Expand Down
8 changes: 5 additions & 3 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,17 +481,19 @@ def test_StrictIndexTypePandasDataFrameResult_build_result(outputs, expected_res
),
"series2": pd.Series(
[4, 5, 6],
index=pd.PeriodIndex(year=[2022, 2022, 2022], month=[1, 2, 3], freq="M"),
index=pd.PeriodIndex.from_fields(
year=[2022, 2022, 2022], month=[1, 2, 3], freq="M"
),
),
"series3": pd.Series(
[4, 5, 6],
index=pd.PeriodIndex(
index=pd.PeriodIndex.from_fields(
year=[2022, 2022, 2022], month=[1, 1, 1], day=[3, 4, 5], freq="B"
),
),
"series4": pd.Series(
[4, 5, 6],
index=pd.PeriodIndex(
index=pd.PeriodIndex.from_fields(
year=[2022, 2022, 2022], month=[1, 1, 1], day=[4, 11, 18], freq="W"
),
),
Expand Down
Loading