File size: 360 Bytes
a39d8ef
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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)