def _run_configuration(mocker, path, with_config=False, region=None):
    if not with_config and os.path.isfile(path):
        os.remove(path)
    args = mocker.MagicMock(autospec=True)
    args.config_file = path
    args.region = region
    configure(args)
예제 #2
0
def _launch_config(mocker, path, remove_path=True):
    if remove_path and os.path.isfile(path):
        os.remove(path)
    args = mocker.MagicMock(autospec=True)
    args.config_file = path
    configure(args)
예제 #3
0
def configure(args):
    easyconfig.configure(args)