mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 09:39:01 +00:00
Increase test coverage
This commit is contained in:
parent
624bba063f
commit
5fd70f7826
13
tests/specific/test_brew.py
Normal file
13
tests/specific/test_brew.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import pytest
|
||||||
|
from thefuck.specific.brew import brew_available, get_brew_path_prefix, all_brew_commands
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.fixtures('no_memoize')
|
||||||
|
def test_get_brew_path_prefix():
|
||||||
|
assert get_brew_path_prefix() == "/usr/local" if brew_available else None
|
||||||
|
|
||||||
|
|
||||||
|
def test_all_brew_commands():
|
||||||
|
assert all_brew_commands() == ['info', 'home', 'options', 'install', 'uninstall',
|
||||||
|
'search', 'list', 'update', 'upgrade', 'pin', 'unpin',
|
||||||
|
'doctor', 'create', 'edit'] if brew_available else None
|
Loading…
x
Reference in New Issue
Block a user