1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-29 22:24:44 +00:00

#682: Unify work with output in classic and instant mode

This commit is contained in:
Vladimir Iakovlev
2017-08-31 17:58:56 +02:00
parent 96843fc6cd
commit 4625d8503d
237 changed files with 1322 additions and 1332 deletions

View File

@@ -1,6 +1,6 @@
import pytest
from thefuck.specific.sudo import sudo_support
from tests.utils import Command
from thefuck.types import Command
@pytest.mark.parametrize('return_value, command, called, result', [
@@ -13,7 +13,7 @@ from tests.utils import Command
(False, 'ls', 'ls', False)])
def test_sudo_support(return_value, command, called, result):
def fn(command):
assert command == Command(called)
assert command == Command(called, '')
return return_value
assert sudo_support(fn)(Command(command)) == result
assert sudo_support(fn)(Command(command, '')) == result