示例#1
0
def step_run_cli_using_arg(context, arg):
    prompt_check = False
    currentdb = None
    if arg == "--username":
        arg = "--username={}".format(context.conf["user"])
    if arg == "--user":
        arg = "--user={}".format(context.conf["user"])
    if arg == "--port":
        arg = "--port={}".format(context.conf["port"])
    if arg == "--password":
        arg = "--password"
        prompt_check = False
    # This uses the mock_pg_service.conf file in fixtures folder.
    if arg == "dsn_password":
        arg = "service=mock_postgres --password"
        prompt_check = False
        currentdb = "postgres"
    wrappers.run_cli(
        context, run_args=[arg], prompt_check=prompt_check, currentdb=currentdb
    )
示例#2
0
def step_run_cli(context):
    wrappers.run_cli(context)
示例#3
0
def step_run_cli_with_arg(context, arg):
    wrappers.run_cli(context, run_args=arg.split('='))
示例#4
0
def step_run_cli_with_arg(context, arg):
    wrappers.run_cli(context, run_args=parse_cli_args_to_dict(arg))
示例#5
0
def step_run_cli_with_arg(context, arg):
    wrappers.run_cli(context, run_args=arg.split('='))
示例#6
0
def step_run_cli(context):
    wrappers.run_cli(context)
示例#7
0
def step_run_cli_without_args(context, excluded_args, exact_args=''):
    wrappers.run_cli(context,
                     run_args=parse_cli_args_to_dict(exact_args),
                     exclude_args=parse_cli_args_to_dict(excluded_args).keys())