"""Shared pytest fixtures for Cerbero Bite tests.""" from __future__ import annotations from collections.abc import Iterator from pathlib import Path import pytest @pytest.fixture def tmp_data_dir(tmp_path: Path) -> Iterator[Path]: """Isolated data directory with the standard subfolder layout.""" data = tmp_path / "data" (data / "log").mkdir(parents=True) (data / "backups").mkdir() yield data @pytest.fixture def project_root() -> Path: """Path to the project root (parent of ``src/``).""" return Path(__file__).resolve().parent.parent