1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-19 03:32:31 +01:00

Fix tests

Thanks to [scorphus] for his [help].

[scorphus]: https://github.com/scorphus
[help]: https://github.com/nvbn/thefuck/pull/352#issuecomment-135248982
This commit is contained in:
mcarton
2015-08-27 10:12:31 +02:00
parent 514bb7df81
commit 27c14a44af
2 changed files with 4 additions and 3 deletions

View File

@@ -24,5 +24,6 @@ def test_get_new_command(brew_unknown_cmd, brew_unknown_cmd2):
assert get_new_command(Command('brew inst', stderr=brew_unknown_cmd),
None) == ['brew list', 'brew install', 'brew uninstall']
assert get_new_command(Command('brew instaa', stderr=brew_unknown_cmd2),
None) == ['brew install', 'brew uninstall', 'brew list']
cmds = get_new_command(Command('brew instaa', stderr=brew_unknown_cmd2), None)
assert 'brew install' in cmds
assert 'brew uninstall' in cmds