mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 17:48:41 +00:00
14 lines
596 B
Python
14 lines
596 B
Python
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 not get_brew_path_prefix()
|
|
|
|
|
|
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 not get_brew_path_prefix()
|