コード例 #1
0
ファイル: test_zsh.py プロジェクト: rayleyva/thefuck
def test_with_confirmation(tag, dockerfile):
    with spawn(tag, dockerfile, u'zsh') as proc:
        proc.sendline(u'eval $(thefuck-alias)')
        proc.sendline(u'export HISTFILE=~/.zsh_history')
        proc.sendline(u'touch $HISTFILE')
        with_confirmation(proc)
        history_changed(proc)
コード例 #2
0
def test_without_confirmation(tag, dockerfile):
    with spawn(tag, dockerfile, u'bash') as proc:
        proc.sendline(u"export PS1='$ '")
        proc.sendline(u'eval $(thefuck-alias)')
        proc.sendline(u'touch $HISTFILE')
        without_confirmation(proc)
        history_changed(proc)
コード例 #3
0
ファイル: test_bash.py プロジェクト: AdmiralAwesome/thefuck
def test_without_confirmation(proc, TIMEOUT, run_without_docker):
    without_confirmation(proc, TIMEOUT)
    if not run_without_docker:
        history_changed(proc, TIMEOUT, u'echo test')
コード例 #4
0
ファイル: test_bash.py プロジェクト: AdmiralAwesome/thefuck
def test_select_command_with_arrows(proc, TIMEOUT, run_without_docker):
    select_command_with_arrows(proc, TIMEOUT)
    if not run_without_docker:
        history_changed(proc, TIMEOUT, u'git help')
コード例 #5
0
ファイル: test_bash.py プロジェクト: josephfrazier/thefuck
def test_without_confirmation(proc, TIMEOUT):
    without_confirmation(proc, TIMEOUT)
    history_changed(proc, TIMEOUT, u'echo test')
コード例 #6
0
ファイル: test_bash.py プロジェクト: josephfrazier/thefuck
def test_select_command_with_arrows(proc, TIMEOUT):
    select_command_with_arrows(proc, TIMEOUT)
    history_changed(proc, TIMEOUT, u'git help')
コード例 #7
0
ファイル: test_bash.py プロジェクト: mengdaya/fuckshell
def test_without_confirmation(proc, TIMEOUT):
    without_confirmation(proc, TIMEOUT)
    history_changed(proc, TIMEOUT, u'echo test')
コード例 #8
0
ファイル: test_bash.py プロジェクト: mengdaya/fuckshell
def test_select_command_with_arrows(proc, TIMEOUT):
    select_command_with_arrows(proc, TIMEOUT)
    history_changed(proc, TIMEOUT, u'git help')
コード例 #9
0
ファイル: test_bash.py プロジェクト: vladmysiur/konspekt
def test_without_confirmation(proc, TIMEOUT, run_without_docker):
    without_confirmation(proc, TIMEOUT)
    if not run_without_docker:
        history_changed(proc, TIMEOUT, u'echo test')
コード例 #10
0
ファイル: test_bash.py プロジェクト: vladmysiur/konspekt
def test_select_command_with_arrows(proc, TIMEOUT, run_without_docker):
    select_command_with_arrows(proc, TIMEOUT)
    if not run_without_docker:
        history_changed(proc, TIMEOUT, u'git help')
コード例 #11
0
ファイル: test_zsh.py プロジェクト: bugaevc/thefuck
def test_without_confirmation(proc):
    without_confirmation(proc)
    history_changed(proc, u'echo test')
コード例 #12
0
ファイル: test_zsh.py プロジェクト: bugaevc/thefuck
def test_select_command_with_arrows(proc):
    select_command_with_arrows(proc)
    history_changed(proc, u'git push')
コード例 #13
0
def test_with_confirmation(proc, TIMEOUT):
    with_confirmation(proc, TIMEOUT)
    history_changed(proc, TIMEOUT, u"echo test")
コード例 #14
0
def test_without_confirmation(proc):
    without_confirmation(proc)
    history_changed(proc, u'echo test')
コード例 #15
0
def test_select_command_with_arrows(proc):
    select_command_with_arrows(proc)
    history_changed(proc, u'git push')