SERPent / tests /helpers.py
Claude
Claude Opus 5
Test the search URLs, and delete the harness that hid them
232eb80 unverified
Raw
History Blame Contribute Delete
302 Bytes
"""Shared test helpers: fixture loading."""
from pathlib import Path
FIXTURES_DIR = Path(__file__).resolve().parent / "fixtures"
def load_fixture(*parts: str) -> str:
"""Read a text fixture from tests/fixtures/<parts...>."""
return FIXTURES_DIR.joinpath(*parts).read_text(encoding="utf-8")