1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-21 12:42:31 +01:00

#577: Use builtin history in Fish function

Fix #577
This commit is contained in:
Pablo Santiago Blum de Aguiar
2016-11-17 22:57:11 -02:00
parent 785cb83ff3
commit a947259eef
2 changed files with 7 additions and 6 deletions

View File

@@ -76,11 +76,11 @@ class TestFish(object):
def test_app_alias_alter_history(self, settings, shell):
settings.alter_history = True
assert 'history --delete' in shell.app_alias('FUCK')
assert 'history --merge' in shell.app_alias('FUCK')
assert 'builtin history delete' in shell.app_alias('FUCK')
assert 'builtin history merge' in shell.app_alias('FUCK')
settings.alter_history = False
assert 'history --delete' not in shell.app_alias('FUCK')
assert 'history --merge' not in shell.app_alias('FUCK')
assert 'builtin history delete' not in shell.app_alias('FUCK')
assert 'builtin history merge' not in shell.app_alias('FUCK')
def test_get_history(self, history_lines, shell):
history_lines(['- cmd: ls', ' when: 1432613911',