mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 10:11:14 +00:00
Fix rules.brew_install tests on Mac
This commit is contained in:
parent
3da26192cb
commit
5e44fb22be
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user