Skip to content

Commit

Permalink
revert and conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chen_data committed Nov 19, 2024
1 parent ae6c533 commit 8ac5db8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ def pytest_sessionfinish(session: pytest.Session, exitstatus: int):


@pytest.fixture(autouse=True)
def setup_mlflow_tracking(monkeypatch):
def setup_mlflow_tracking(monkeypatch, tmp_path):
mlflow = pytest.importorskip('mlflow')
monkeypatch.setenv(mlflow.environment_variables.MLFLOW_TRACKING_URI.name, 'databricks')
# Use a temporary directory instead of 'databricks'
tracking_uri = str(tmp_path / "mlruns")
monkeypatch.setenv(mlflow.environment_variables.MLFLOW_TRACKING_URI.name, tracking_uri)
os.makedirs(tracking_uri, exist_ok=True)

0 comments on commit 8ac5db8

Please sign in to comment.