import json


def load_test_data(test_dir: str, test_name: str) -> dict:
    """
    Returns the contents of a json file at location of:
    test_dir/test_name.json

    This is meant to keep large amounts of json needed for testing outside of
    the tests themselves and as the actual json responses from the API
    """
    test_file = f"{test_dir}/{test_name}.json"
    with open(test_file, "r") as the_file:
        data = the_file.read()
    return json.loads(data)