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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user