<filename>tests/tracking/conftest.py
import mlflow
import pytest


@pytest.fixture
def reset_active_experiment():
    yield
    mlflow.tracking.fluent._active_experiment_id = None

<filename>tests/tracking/conftest.py
import mlflow
import pytest


@pytest.fixture
def reset_active_experiment():
    yield
    mlflow.tracking.fluent._active_experiment_id = None
