1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-30 14:44:05 +00:00

#331 Fix bug with empty commands

This commit is contained in:
mcarton
2015-08-11 10:49:19 +02:00
parent d20205249b
commit 285d57eb01
2 changed files with 9 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ class TestGetCommand(object):
env={})
@pytest.mark.parametrize('args, result', [
(['thefuck', ''], None),
(['thefuck', '', ''], None),
(['thefuck', 'ls', '-la'], 'ls -la'),
(['thefuck', 'ls'], 'ls')])
def test_get_command_script(self, args, result):