mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 14:44:05 +00:00
#611: Allow to configure alias automatically by calling fuck twice
This commit is contained in:
@@ -55,3 +55,12 @@ class TestZsh(object):
|
||||
def test_get_history(self, history_lines, shell):
|
||||
history_lines([': 1432613911:0;ls', ': 1432613916:0;rm'])
|
||||
assert list(shell.get_history()) == ['ls', 'rm']
|
||||
|
||||
def test_how_to_configure(self, shell, config_exists):
|
||||
config_exists.return_value = True
|
||||
assert shell.how_to_configure().can_configure_automatically
|
||||
|
||||
def test_how_to_configure_when_config_not_found(self, shell,
|
||||
config_exists):
|
||||
config_exists.return_value = False
|
||||
assert not shell.how_to_configure().can_configure_automatically
|
||||
|
||||
Reference in New Issue
Block a user