1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-19 09:08:47 +00:00

Revert unecessary Popen mock changes

This commit is contained in:
David 2018-01-01 14:59:30 +00:00
parent 2182464e13
commit 04a3f79606

View File

@ -10,7 +10,7 @@ class TestFish(object):
def shell(self): def shell(self):
return Fish() return Fish()
@pytest.fixture @pytest.fixture(autouse=True)
def Popen(self, mocker): def Popen(self, mocker):
mock = mocker.patch('thefuck.shells.fish.Popen') mock = mocker.patch('thefuck.shells.fish.Popen')
mock.return_value.stdout.read.side_effect = [( mock.return_value.stdout.read.side_effect = [(
@ -44,7 +44,6 @@ class TestFish(object):
('vim', 'vim'), ('vim', 'vim'),
('ll', 'fish -ic "ll"'), ('ll', 'fish -ic "ll"'),
('ls', 'ls')]) # Fish has no aliases but functions ('ls', 'ls')]) # Fish has no aliases but functions
@pytest.mark.usefixtures('Popen')
def test_from_shell(self, before, after, shell): def test_from_shell(self, before, after, shell):
assert shell.from_shell(before) == after assert shell.from_shell(before) == after
@ -57,7 +56,6 @@ class TestFish(object):
def test_or_(self, shell): def test_or_(self, shell):
assert shell.or_('foo', 'bar') == 'foo; or bar' assert shell.or_('foo', 'bar') == 'foo; or bar'
@pytest.mark.usefixtures('Popen')
def test_get_aliases(self, shell): def test_get_aliases(self, shell):
assert shell.get_aliases() == {'fish_config': 'fish_config', assert shell.get_aliases() == {'fish_config': 'fish_config',
'fuck': 'fuck', 'fuck': 'fuck',