from typing import Tuple
from pathlib import Path


def get_config(set_: str, name: str = 'config.toml') -> Tuple[Path, str]:
    """
    Get the path to a test configuration set.

    :param set_: identifies the set
    :param name: the name of the configuration file
    :return: the path
    """
    path: Path = Path(__file__).parent.resolve() / 'configs' / set_ / name
    return path, path.read_text()