nl2sql-bench / tests /conftest.py
ritvik360's picture
Upload folder using huggingface_hub
a39d8ef verified
raw
history blame contribute delete
360 Bytes
# nl2sql-bench/tests/conftest.py
"""
Pytest configuration — adds project root and server/ to sys.path
so all test imports resolve without installing the package.
"""
import sys
from pathlib import Path
ROOT = Path(__file__).parent.parent
SERVER = ROOT / "server"
for p in [str(ROOT), str(SERVER)]:
if p not in sys.path:
sys.path.insert(0, p)