Skip to content

Commit

Permalink
Merge pull request #388 from scorphus/fix-brew-tests
Browse files Browse the repository at this point in the history
Fix rules.brew_install tests on Mac
  • Loading branch information
nvbn committed Oct 18, 2015
2 parents 3da2619 + 5e44fb2 commit 8b416f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/rules/test_brew_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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'

0 comments on commit 8b416f2

Please sign in to comment.