Spaces:
Sleeping
Sleeping
| # 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) | |