mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +00:00
Test changes
This commit is contained in:
parent
5ac5888a76
commit
f6826cbcf2
@ -9,12 +9,9 @@ community/shared_meataxe 1.0-3
|
|||||||
"""
|
"""
|
||||||
assert not match(Command('pacman -Ss meat', right_response))
|
assert not match(Command('pacman -Ss meat', right_response))
|
||||||
|
|
||||||
wrong_response = """
|
wrong_response = "error: invalid option '-s'"
|
||||||
error: invalid option '-s'
|
|
||||||
"""
|
|
||||||
assert match(Command('pacman -ss meat', wrong_response))
|
assert match(Command('pacman -ss meat', wrong_response))
|
||||||
|
|
||||||
|
|
||||||
def test_get_new_command():
|
def test_get_new_command():
|
||||||
assert get_new_command(Command('pacman -ss meat', '')) == 'pacman -Ss meat'
|
|
||||||
assert get_new_command(Command('pacman -s meat', '')) == 'pacman -S meat'
|
assert get_new_command(Command('pacman -s meat', '')) == 'pacman -S meat'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user