import json


def load_test_suite(configfile_path):
    """ Load the test suite from a JSON config file """
    with open(configfile_path) as test_suite_config:
        test_suite_json = json.load(test_suite_config)

    if not test_suite_json:
        raise TypeError(
            'Unable to load {PATH}. Check if it is valid JSON.'.format(
                PATH=configfile_path))
    return test_suite_json