"""Model-dependent tests use MM_EMOTION_LOCAL_DIR (a folder with the model repo layout) and skip without it.""" import os from pathlib import Path import pytest @pytest.fixture(scope="session") def model_root() -> Path: root = os.environ.get("MM_EMOTION_LOCAL_DIR") if not root or not (Path(root) / "config.json").exists(): pytest.skip("set MM_EMOTION_LOCAL_DIR to the model repo folder") return Path(root)