"""Pytest fixtures for the PMP reference node test suite.""" from __future__ import annotations from pathlib import Path import pytest SAMPLES_DIR = Path(__file__).resolve().parent.parent / "samples" @pytest.fixture(scope="session") def samples_dir() -> Path: """Path to the synthetic 'Avery Quinn' sample datasets shipped in-repo.""" assert SAMPLES_DIR.is_dir(), "samples/ directory must ship with the repository" return SAMPLES_DIR @pytest.fixture() def node_dir(tmp_path: Path) -> Path: """A fresh, not-yet-initialised node directory.""" return tmp_path / "node" @pytest.fixture() def node(node_dir: Path): """A freshly initialised reference node (keys, genesis op, empty log).""" from pmp.node import Node return Node.init(node_dir, name="Avery Quinn")