Skip to content

Commit

Permalink
set mlflow env var to None
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chen_data committed Nov 19, 2024
1 parent 78ba60c commit f00bded
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/utils/object_store/test_mlflow_object_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
DEFAULT_PATH = TEST_PATH_FORMAT.format(experiment_id=EXPERIMENT_ID, run_id=RUN_ID)


@pytest.fixture(autouse=True)
def setup_mlflow_tracking(monkeypatch):
mlflow = pytest.importorskip('mlflow')
monkeypatch.setattr(mlflow.environment_variables, 'MLFLOW_TRACKING_URI', None)


def test_parse_dbfs_path():
full_artifact_path = DEFAULT_PATH + ARTIFACT_PATH
assert MLFlowObjectStore.parse_dbfs_path(full_artifact_path) == (EXPERIMENT_ID, RUN_ID, ARTIFACT_PATH)
Expand Down

0 comments on commit f00bded

Please sign in to comment.