1
0
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:
Vladimir Iakovlev
2017-03-13 21:50:13 +01:00
parent 2379573cf2
commit 14a9cd85aa
19 changed files with 336 additions and 54 deletions

View File

@@ -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