""" CXInsights - Pytest Configuration and Fixtures """ import os from pathlib import Path import pytest # Set test environment os.environ["TESTING"] = "true" @pytest.fixture def project_root() -> Path: """Return the project root directory.""" return Path(__file__).parent.parent @pytest.fixture def fixtures_dir(project_root: Path) -> Path: """Return the fixtures directory.""" return project_root / "tests" / "fixtures" @pytest.fixture def sample_audio_dir(fixtures_dir: Path) -> Path: """Return the sample audio directory.""" return fixtures_dir / "sample_audio" @pytest.fixture def sample_transcripts_dir(fixtures_dir: Path) -> Path: """Return the sample transcripts directory.""" return fixtures_dir / "sample_transcripts" @pytest.fixture def config_dir(project_root: Path) -> Path: """Return the config directory.""" return project_root / "config" @pytest.fixture def taxonomy_path(config_dir: Path) -> Path: """Return the RCA taxonomy file path.""" return config_dir / "rca_taxonomy.yaml" @pytest.fixture def settings_path(config_dir: Path) -> Path: """Return the settings file path.""" return config_dir / "settings.yaml"