"""sys.path bootstrap for api tests.

The pipeline API package (``recoil/pipeline/api``) is imported by its fully
qualified name everywhere now (source uses relative imports; tests use
``recoil.pipeline.api.*``), so this conftest only has to make ``recoil`` and
``recoil/pipeline`` importable. It deliberately does NOT bind a bare ``api``
module — doing so cached ``sys.modules["api"] → recoil/pipeline/api`` and
collided with the second ``api`` package at ``recoil/api`` (REC-184), erroring
``recoil/api/adapters`` collection whenever an api test ran first.
"""
from __future__ import annotations

import sys
import pathlib

sys.path.insert(
    0, str(pathlib.Path(__file__).resolve().parent.parent.parent.parent.parent)
)
from recoil.core.paths import ensure_pipeline_importable  # noqa: E402

ensure_pipeline_importable()
