StillWorking's picture
Upload backend/tests/conftest.py with huggingface_hub
763d409 verified
Raw History Blame Contribute Delete
242 Bytes
import sys
from pathlib import Path
# Make the backend package importable when pytest is run from the repo root.
BACKEND_DIR = Path(__file__).resolve().parents[1]
if str(BACKEND_DIR) not in sys.path:
sys.path.insert(0, str(BACKEND_DIR))