rag-qa-command-cente / tests /conftest.py
Tarek Masryo
chore: update project files
6bef416
raw
history blame contribute delete
447 Bytes
from __future__ import annotations
import sys
from pathlib import Path
import pytest
ROOT = Path(__file__).resolve().parents[1]
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
from src.data import DataBundle, load_bundle # noqa: E402
@pytest.fixture(scope="session")
def repo_root() -> Path:
return ROOT
@pytest.fixture(scope="session")
def bundle() -> DataBundle:
return load_bundle(ROOT / "data", ROOT / "docs")