@pytest.mark.parametrize('algorithm_settings', ALGORITHM_SETTINGS.items(), ids=['{}_config'.format(os.path.splitext(c)[0]) for c in ALGORITHM_SETTINGS])
def test_algo_params_validation(algorithm_settings):
    tool_config_path = TOOL_CONFIG_PATH.joinpath('mobilenet-v2-pytorch_single_dataset.json').as_posix()
    config = Config.read_config(tool_config_path)
    config['compression']['algorithms'][0] = algorithm_settings[1][0]
    config_error = algorithm_settings[1][1]
    with pytest.raises(RuntimeError, match=config_error):
        config.validate_algo_config()
@pytest.mark.parametrize('algorithm_settings', ALGORITHM_SETTINGS.items(), ids=['{}_config'.format(os.path.splitext(c)[0]) for c in ALGORITHM_SETTINGS])
def test_algo_params_validation(algorithm_settings):
    tool_config_path = TOOL_CONFIG_PATH.joinpath('mobilenet-v2-pytorch_single_dataset.json').as_posix()
    config = Config.read_config(tool_config_path)
    config['compression']['algorithms'][0] = algorithm_settings[1][0]
    config_error = algorithm_settings[1][1]
    with pytest.raises(RuntimeError, match=config_error):
        config.validate_algo_config()