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)
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)
def configure(args): easyconfig.configure(args)