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 )
def step_run_cli(context): wrappers.run_cli(context)
def step_run_cli_with_arg(context, arg): wrappers.run_cli(context, run_args=arg.split('='))
def step_run_cli_with_arg(context, arg): wrappers.run_cli(context, run_args=parse_cli_args_to_dict(arg))
def step_run_cli_with_arg(context, arg): wrappers.run_cli(context, run_args=arg.split('='))
def step_run_cli(context): wrappers.run_cli(context)
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())