from pathlib import Path

ROOT = Path(__file__).resolve().parents[3]
DOCS = ROOT / "docs" / "contracts" / "examples"
PACKAGE = ROOT / "apps" / "api-gateway" / "jarvis_gateway" / "fixtures"


def test_package_fixtures_match_golden_fixtures_byte_for_byte() -> None:
    for name in ["finance.snapshot.json", "health.snapshot.json", "autoshorts.snapshot.json", "system.snapshot.json"]:
        assert (PACKAGE / name).read_bytes() == (DOCS / name).read_bytes(), name
