コード例 #1
0
ファイル: test_git_add.py プロジェクト: tiandee/thefuck
def test_not_match(command):
    assert not match(command, None)
コード例 #2
0
ファイル: test_git_add.py プロジェクト: tgunr/tryagain
def test_match(output, script, target):
    assert match(Command(script, output))
コード例 #3
0
ファイル: test_git_add.py プロジェクト: tgunr/tryagain
def test_not_match(path_exists, output, script, target, exists):
    path_exists.return_value = exists
    assert not match(Command(script, output))
コード例 #4
0
def test_match(stderr, script, target):
    assert match(Command(script=script, stderr=stderr))
コード例 #5
0
def test_not_match(path_exists, stderr, script, target, exists):
    path_exists.return_value = exists
    assert not match(Command(script=script, stderr=stderr))
コード例 #6
0
ファイル: test_git_add.py プロジェクト: Clpsplug/thefuck
def test_match(output, script, target):
    assert match(Command(script, output))
コード例 #7
0
ファイル: test_git_add.py プロジェクト: Clpsplug/thefuck
def test_not_match(path_exists, output, script, target, exists):
    path_exists.return_value = exists
    assert not match(Command(script, output))
コード例 #8
0
def test_not_match(script):
    assert not match(Command(script=script, stderr=''))
コード例 #9
0
def test_match(stderr, script, target):
    assert match(Command(script=script, stderr=stderr))
コード例 #10
0
def test_match(command):
    assert match(command)
コード例 #11
0
ファイル: test_git_add.py プロジェクト: yunshan/thefuck
def test_not_match(script):
    assert not match(Command(script=script, stderr=''))
コード例 #12
0
ファイル: test_git_add.py プロジェクト: Googulator/thefuck
def test_not_match(path_exists, stderr, script, target, exists):
    path_exists.return_value = exists
    assert not match(Command(script=script, stderr=stderr))