1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-19 03:32:31 +01:00

Improve brew* rules import time

This commit is contained in:
mcarton
2015-08-26 19:46:23 +02:00
parent 2b750bac8b
commit b0702d309f
5 changed files with 56 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
import pytest
from thefuck.rules.brew_unknown_command import match, get_new_command
from thefuck.rules.brew_unknown_command import brew_commands
from thefuck.rules.brew_unknown_command import _brew_commands
from tests.utils import Command
@@ -16,7 +16,7 @@ def brew_unknown_cmd2():
def test_match(brew_unknown_cmd):
assert match(Command('brew inst', stderr=brew_unknown_cmd), None)
for command in brew_commands:
for command in _brew_commands():
assert not match(Command('brew ' + command), None)