mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 14:44:05 +00:00
#N/A: Monkeypatch pathlib on windows
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
from thefuck import shells
|
||||
from thefuck import conf, const
|
||||
from thefuck.utils import Path
|
||||
from thefuck.system import Path
|
||||
|
||||
shells.shell = shells.Generic()
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import pytest
|
||||
from thefuck import corrector, const
|
||||
from thefuck.utils import Path
|
||||
from thefuck.system import Path
|
||||
from tests.utils import Rule, Command, CorrectedCommand
|
||||
from thefuck.corrector import get_corrected_commands, organize_commands
|
||||
|
||||
@@ -11,7 +11,7 @@ class TestGetRules(object):
|
||||
@pytest.fixture
|
||||
def glob(self, mocker):
|
||||
results = {}
|
||||
mocker.patch('thefuck.utils.Path.glob',
|
||||
mocker.patch('thefuck.system.Path.glob',
|
||||
new_callable=lambda: lambda *_: results.pop('value', []))
|
||||
return lambda value: results.update({'value': value})
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import pytest
|
||||
from tests.utils import CorrectedCommand, Rule, Command
|
||||
from thefuck import const
|
||||
from thefuck.exceptions import EmptyCommand
|
||||
from thefuck.utils import Path
|
||||
from thefuck.system import Path
|
||||
|
||||
|
||||
class TestCorrectedCommand(object):
|
||||
|
||||
Reference in New Issue
Block a user