"""conftest.py — Ensure libs/ is on sys.path for test imports."""

import os
import sys

# Add the parent directory (libs/) to sys.path so that
# 'import chunker', 'import embedding_service', etc. work
# regardless of the working directory pytest is run from.
_libs_dir = os.path.join(os.path.dirname(__file__), "..")
if _libs_dir not in sys.path:
    sys.path.insert(0, _libs_dir)
