1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-15 15:20:42 +01:00

Remove None assertion

This commit is contained in:
Aadit Kamat 2019-10-22 22:15:46 +08:00
parent 5fd70f7826
commit 04ae5e3784

View File

@ -4,10 +4,10 @@ from thefuck.specific.brew import brew_available, get_brew_path_prefix, all_brew
@pytest.mark.fixtures('no_memoize')
def test_get_brew_path_prefix():
assert get_brew_path_prefix() == "/usr/local" if brew_available else None
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 None
'doctor', 'create', 'edit'] if brew_available else not get_brew_path_prefix()