1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

Fix rules.brew_install tests on Mac

This commit is contained in:
Pablo Santiago Blum de Aguiar 2015-10-17 18:45:29 -03:00
parent 3da26192cb
commit 5e44fb22be

View File

@ -31,8 +31,7 @@ def test_match(brew_no_available_formula, brew_already_installed,
stderr=brew_no_available_formula))
assert not match(Command('brew install git',
stderr=brew_already_installed))
assert not match(Command('brew install', stderr=brew_install_no_argument),
None)
assert not match(Command('brew install', stderr=brew_install_no_argument))
@pytest.mark.skipif(_is_not_okay_to_test(),
@ -43,5 +42,5 @@ def test_get_new_command(brew_no_available_formula):
== 'brew install elasticsearch'
assert get_new_command(Command('brew install aa',
stderr=brew_no_available_formula),
None) != 'brew install aha'
stderr=brew_no_available_formula))\
!= 'brew install aha'