コード例 #1
0
ファイル: test_git_pull.py プロジェクト: mengdaya/fuckshell
def test_get_new_command(stderr):
    assert (get_new_command(Command('git pull', stderr=stderr)) ==
            "git branch --set-upstream-to=origin/master master && git pull")
コード例 #2
0
def test_get_new_command(stderr):
    assert get_new_command(Command('git pull', stderr=stderr)) \
           == "git branch --set-upstream-to=origin/master master && git pull"
コード例 #3
0
def test_get_new_command(output):
    assert (get_new_command(Command('git pull', output)) ==
            "git branch --set-upstream-to=origin/master master && git pull")
コード例 #4
0
ファイル: test_git_pull.py プロジェクト: Clpsplug/thefuck
def test_get_new_command(output):
    assert (get_new_command(Command('git pull', output))
            == "git branch --set-upstream-to=origin/master master && git pull")