"""Shared pytest fixtures pointing at the project's real bundled assets.""" from __future__ import annotations from pathlib import Path import pytest PROJECT_ROOT = Path(__file__).resolve().parents[1] @pytest.fixture(scope="session") def project_root() -> Path: return PROJECT_ROOT @pytest.fixture(scope="session") def image_dir(project_root: Path) -> Path: return project_root / "image" @pytest.fixture(scope="session") def dataset_dir(project_root: Path) -> Path: return project_root / "dataset" @pytest.fixture(scope="session") def annotations_dir(project_root: Path) -> Path: return project_root / "annotations"