diff --git a/tests/entrypoints/test_fix_command.py b/tests/entrypoints/test_fix_command.py index 18431c46..3012bb4f 100644 --- a/tests/entrypoints/test_fix_command.py +++ b/tests/entrypoints/test_fix_command.py @@ -5,8 +5,8 @@ from thefuck.entrypoints.fix_command import _get_raw_command class TestGetRawCommand(object): def test_from_force_command_argument(self): - known_args = Mock(force_command=['git', 'brunch']) - assert _get_raw_command(known_args) == ['git', 'brunch'] + known_args = Mock(force_command='git brunch') + assert _get_raw_command(known_args) == ['git brunch'] def test_from_command_argument(self, os_environ): os_environ['TF_HISTORY'] = None diff --git a/thefuck/entrypoints/fix_command.py b/thefuck/entrypoints/fix_command.py index 6946653e..018ba580 100644 --- a/thefuck/entrypoints/fix_command.py +++ b/thefuck/entrypoints/fix_command.py @@ -12,7 +12,7 @@ from ..utils import get_alias, get_all_executables def _get_raw_command(known_args): if known_args.force_command: - return known_args.force_command + return [known_args.force_command] elif not os.environ.get('TF_HISTORY'): return known_args.command else: