コード例 #1
0
def test_get_new_command(is_not_task):
    assert (get_new_command(Command('lein rpl --help', is_not_task))
            == ['lein repl --help', 'lein jar --help'])
コード例 #2
0
def test_get_new_command(is_not_task):
    assert get_new_command(Mock(script='lein rpl --help', stderr=is_not_task),
                           None) == 'lein repl --help'
コード例 #3
0
ファイル: test_lein_not_task.py プロジェクト: tgunr/tryagain
def test_get_new_command(is_not_task):
    assert (get_new_command(
        Command('lein rpl --help',
                is_not_task)) == ['lein repl --help', 'lein jar --help'])
コード例 #4
0
ファイル: test_lein_not_task.py プロジェクト: ngphat/thefuck
def test_get_new_command(is_not_task):
    assert get_new_command(Mock(script="lein rpl --help", stderr=is_not_task), None) == [
        "lein repl --help",
        "lein jar --help",
    ]
コード例 #5
0
def test_get_new_command(is_not_task):
    assert get_new_command(Command("lein rpl --help", is_not_task)) == [
        "lein repl --help",
        "lein jar --help",
    ]
コード例 #6
0
def test_get_new_command(is_not_task):
    assert get_new_command(
        Command(script='lein rpl --help', stderr=is_not_task),
        None) == ['lein repl --help', 'lein jar --help']
コード例 #7
0
def test_get_new_command(is_not_task):
    assert (get_new_command(Command(script='lein rpl --help', stderr=is_not_task))
            == ['lein repl --help', 'lein jar --help'])