# @oagen-ignore-file

import json
import os


FIXTURES_DIR = os.path.join(os.path.dirname(__file__), "fixtures")


def load_fixture(name: str) -> dict:
    """Load a JSON fixture file by name."""
    path = os.path.join(FIXTURES_DIR, name)
    with open(path) as f:
        return json.load(f)
