"""Shared fixtures (delivered V7.1 suite).""" from __future__ import annotations import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) import tempfile @pytest.fixture() def config(tmp_path, monkeypatch): home = tmp_path / "lpu_home" home.mkdir() monkeypatch.setenv("LPU_HOME", str(home)) return { "server": {"host": "127.0.0.1", "port": 8710, "open_browser": False}, "accelerator": {"autostart": False}, "monitoring": {"interval_s": 0.2}, "training": {"attach": {"scan_interval_s": 0.2}}, "paths": {"lpu_home": str(home)}, }