latin-bert / tests /conftest.py
diyclassics's picture
refactor: extract shared case study utils and move data to tracked paths
f04d50f
raw
history blame contribute delete
540 Bytes
"""Shared fixtures for Latin BERT case study benchmarks."""
import pytest
DEFAULT_MODEL_PATH = "latincy/latin-bert"
def pytest_addoption(parser):
parser.addoption(
"--model-path",
action="store",
default=DEFAULT_MODEL_PATH,
help="Path to HF-compatible model directory (default: /tmp/latin-bert-hub)",
)
@pytest.fixture(scope="session")
def model_path(request):
"""Model path fixture — use --model-path to benchmark different models."""
return request.config.getoption("--model-path")