mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-09 21:34:05 +01:00
#611: Allow to configure alias automatically by calling fuck
twice
This commit is contained in:
@@ -20,3 +20,11 @@ def history_lines(mocker):
|
||||
.return_value.readlines.return_value = lines
|
||||
|
||||
return aux
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def config_exists(mocker):
|
||||
path_mock = mocker.patch('thefuck.shells.generic.Path')
|
||||
return path_mock.return_value \
|
||||
.expanduser.return_value \
|
||||
.exists
|
||||
|
Reference in New Issue
Block a user