コード例 #1
0
def before_scenario(context, arg):
    with open(test_log_file, 'w') as f:
        f.write('')
    if arg.location.filename not in SELF_CONNECTING_FEATURES:
        run_cli(context)
        wait_prompt(context)

    if os.path.exists(MY_CNF_PATH):
        shutil.move(MY_CNF_PATH, MY_CNF_BACKUP_PATH)

    if os.path.exists(MYLOGIN_CNF_PATH):
        shutil.move(MYLOGIN_CNF_PATH, MYLOGIN_CNF_BACKUP_PATH)
コード例 #2
0
ファイル: environment.py プロジェクト: xingsu56/pgcli
def before_scenario(context, scenario):
    if scenario.name == 'list databases':
        # not using the cli for that
        return
    wrappers.run_cli(context)
    wrappers.wait_prompt(context)
コード例 #3
0
ファイル: environment.py プロジェクト: xudongdong/mycli
def before_scenario(context, _):
    run_cli(context)
    wait_prompt(context)
コード例 #4
0
def before_scenario(context, _):
    with open(test_log_file, 'w') as f:
        f.write('')
    run_cli(context)
    wait_prompt(context)
コード例 #5
0
ファイル: environment.py プロジェクト: DaveXanderXU/mycli
def before_scenario(context, _):
    run_cli(context)
    wait_prompt(context)