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:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user