mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
parent
836f6eeac5
commit
40dd65963d
@ -139,6 +139,7 @@ class TestCommand(object):
|
|||||||
env=os_environ)
|
env=os_environ)
|
||||||
|
|
||||||
@pytest.mark.parametrize('script, result', [
|
@pytest.mark.parametrize('script, result', [
|
||||||
|
([], None),
|
||||||
([''], None),
|
([''], None),
|
||||||
(['', ''], None),
|
(['', ''], None),
|
||||||
(['ls', '-la'], 'ls -la'),
|
(['ls', '-la'], 'ls -la'),
|
||||||
|
@ -23,6 +23,7 @@ def _get_raw_command(known_args):
|
|||||||
diff = SequenceMatcher(a=alias, b=command).ratio()
|
diff = SequenceMatcher(a=alias, b=command).ratio()
|
||||||
if diff < const.DIFF_WITH_ALIAS or command in executables:
|
if diff < const.DIFF_WITH_ALIAS or command in executables:
|
||||||
return [command]
|
return [command]
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
def fix_command(known_args):
|
def fix_command(known_args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user