1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 14:48:49 +00:00

Test changes

This commit is contained in:
DragonGhost7 2019-10-03 22:08:33 -04:00
parent 5ac5888a76
commit f6826cbcf2

View File

@ -9,12 +9,9 @@ community/shared_meataxe 1.0-3
"""
assert not match(Command('pacman -Ss meat', right_response))
wrong_response = """
error: invalid option '-s'
"""
wrong_response = "error: invalid option '-s'"
assert match(Command('pacman -ss meat', wrong_response))
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'