1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-18 19:22:32 +01:00

#209 add support of aliases to no_command

This commit is contained in:
nvbn
2015-05-20 16:58:05 +03:00
parent 5319871326
commit 2c3df1ad47
3 changed files with 8 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ from thefuck.rules.no_command import match, get_new_command
def test_match():
with patch('thefuck.rules.no_command._get_all_bins',
with patch('thefuck.rules.no_command._get_all_callables',
return_value=['vim', 'apt-get']):
assert match(Mock(stderr='vom: not found', script='vom file.py'), None)
assert not match(Mock(stderr='qweqwe: not found', script='qweqwe'), None)
@@ -11,7 +11,7 @@ def test_match():
def test_get_new_command():
with patch('thefuck.rules.no_command._get_all_bins',
with patch('thefuck.rules.no_command._get_all_callables',
return_value=['vim', 'apt-get']):
assert get_new_command(
Mock(stderr='vom: not found',