"""Shared pytest fixtures."""

from pathlib import Path

import pytest

REPO_ROOT = Path(__file__).parent.parent
EXAMPLES_ROOT = REPO_ROOT / "personas" / "examples"


@pytest.fixture
def examples_persona_root(monkeypatch):
    """Point MENTORCORE_PERSONAS_ROOT at the examples/ directory."""
    monkeypatch.setenv("MENTORCORE_PERSONAS_ROOT", str(EXAMPLES_ROOT))
    return EXAMPLES_ROOT


@pytest.fixture
def test_persona_dir():
    """Direct path to the test-persona fixture package."""
    return EXAMPLES_ROOT / "test-persona"
