コード例 #1
0
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)