1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-18 19:22:32 +01:00

Don't duplicate project root in tests

This commit is contained in:
nvbn
2015-08-26 12:12:52 +03:00
parent b21c9ebb43
commit 354ae119c6
3 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
from pathlib import Path
from thefuck import types
from thefuck.conf import DEFAULT_PRIORITY
@@ -19,3 +20,6 @@ def Rule(name='', match=lambda *_: True,
def CorrectedCommand(script='', side_effect=None, priority=DEFAULT_PRIORITY):
return types.CorrectedCommand(script, side_effect, priority)
root = Path(__file__).parent.parent.resolve()