from __future__ import annotations from pathlib import Path import pytest FIXTURES = Path(__file__).parent / "fixtures" @pytest.fixture def fixtures() -> Path: return FIXTURES def read_fixture(name: str) -> str: return (FIXTURES / name).read_text(encoding="utf-8")