1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-20 20:09:07 +00:00

Fix rules.touch tests

Move them to `rules` sub-directory and import `shells` instead of `and_`
which in turn triggers the `generic_shell` fixture fixing the tests on
Fish Shell.
This commit is contained in:
Pablo Santiago Blum de Aguiar 2015-10-18 19:41:21 -02:00
parent f374142bf8
commit 590fdba2aa
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import re
from thefuck import shells
from thefuck.utils import for_app
from thefuck.shells import and_
@for_app('touch')
@ -10,4 +10,4 @@ def match(command):
def get_new_command(command):
path = re.findall(r"touch: cannot touch '(.+)/.+':", command.stderr)[0]
return and_(u'mkdir -p {}'.format(path), command.script)
return shells.and_(u'mkdir -p {}'.format(path), command.script)