import pathlib


def get_testdata_file_path(rel_path: str) -> pathlib.Path:
    """Gets the full path to a file in the testdata directory.

    Arguments:
        rel_path -- path relative to testdata/

    Returns:
        pathlib.Path -- the full path to the file.
    """
    return pathlib.Path(__file__).parent / "testdata" / rel_path