예제 #1
0
def test_not_match(mocker, exists, command, gradlew, which):
    mocker.patch("thefuck.rules.gradle_wrapper.which", return_value=which)
    exists.return_value = gradlew

    assert not match(command)
예제 #2
0
def test_not_match(mocker, exists, command, gradlew, which):
    mocker.patch('thefuck.rules.gradle_wrapper.which', return_value=which)
    exists.return_value = gradlew

    assert not match(command)
예제 #3
0
def test_match(mocker, command):
    mocker.patch("thefuck.rules.gradle_wrapper.which", return_value=None)

    assert match(command)
예제 #4
0
def test_match(mocker, command):
    mocker.patch('thefuck.rules.gradle_wrapper.which', return_value=None)

    assert match(command)