mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-19 09:08:47 +00:00
Add more aliases to test
This commit is contained in:
parent
cc1c558754
commit
2182464e13
@ -16,7 +16,7 @@ class TestFish(object):
|
|||||||
mock.return_value.stdout.read.side_effect = [(
|
mock.return_value.stdout.read.side_effect = [(
|
||||||
b'cd\nfish_config\nfuck\nfunced\nfuncsave\ngrep\nhistory\nll\nls\n'
|
b'cd\nfish_config\nfuck\nfunced\nfuncsave\ngrep\nhistory\nll\nls\n'
|
||||||
b'man\nmath\npopd\npushd\nruby'),
|
b'man\nmath\npopd\npushd\nruby'),
|
||||||
b'alias g git']
|
b'alias fish_key_reader /usr/bin/fish_key_reader\nalias g git']
|
||||||
return mock
|
return mock
|
||||||
|
|
||||||
@pytest.mark.parametrize('key, value', [
|
@pytest.mark.parametrize('key, value', [
|
||||||
@ -69,7 +69,8 @@ class TestFish(object):
|
|||||||
'popd': 'popd',
|
'popd': 'popd',
|
||||||
'pushd': 'pushd',
|
'pushd': 'pushd',
|
||||||
'ruby': 'ruby',
|
'ruby': 'ruby',
|
||||||
'g': 'git'}
|
'g': 'git',
|
||||||
|
'fish_key_reader': '/usr/bin/fish_key_reader'}
|
||||||
|
|
||||||
def test_app_alias(self, shell):
|
def test_app_alias(self, shell):
|
||||||
assert 'function fuck' in shell.app_alias('fuck')
|
assert 'function fuck' in shell.app_alias('fuck')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user