Files
mlflow--mlflow/tests/pyfunc/test_backward_compatibility.py
2026-07-13 13:22:34 +08:00

10 lines
277 B
Python

import pytest
import mlflow
@pytest.mark.parametrize("version", ["2.7.1", "2.8.1"])
def test_backward_compatibility(version):
model = mlflow.pyfunc.load_model(f"tests/resources/pyfunc_models/{version}")
assert model.predict("MLflow is great!") == "MLflow is great!"