1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Increase test coverage

This commit is contained in:
Aadit Kamat 2019-10-22 22:05:02 +08:00
parent 624bba063f
commit 5fd70f7826

View 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