Move special data types to types
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from thefuck.main import Command
|
||||
from thefuck.types import Command
|
||||
from thefuck.rules.cd_parent import match, get_new_command
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from thefuck.main import Command
|
||||
from thefuck.types import Command
|
||||
from thefuck.rules.git_not_command import match, get_new_command
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from thefuck.main import Command
|
||||
from thefuck.types import Command
|
||||
from thefuck.rules.git_push import match, get_new_command
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from mock import Mock, patch
|
||||
from thefuck.rules. has_exists_script import match, get_new_command
|
||||
from thefuck.rules.has_exists_script import match, get_new_command
|
||||
|
||||
|
||||
def test_match():
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from thefuck.main import Command
|
||||
from thefuck.types import Command
|
||||
from thefuck.rules.mkdir_p import match, get_new_command
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
from thefuck.main import Command
|
||||
from thefuck.types import Command
|
||||
from thefuck.rules.python_command import match, get_new_command
|
||||
|
||||
|
||||
def test_match():
|
||||
assert match(Command('temp.py', '', 'Permission denied'), None)
|
||||
assert not match(Command('', '', ''), None)
|
||||
|
||||
|
||||
def test_get_new_command():
|
||||
assert get_new_command(Command('./test_sudo.py', '', ''), None) == 'python ./test_sudo.py'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from thefuck.main import Command
|
||||
from thefuck.types import Command
|
||||
from thefuck.rules.rm_dir import match, get_new_command
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import pytest
|
||||
from mock import Mock
|
||||
from thefuck.main import Command
|
||||
from thefuck.types import Command
|
||||
from thefuck.rules.ssh_known_hosts import match, get_new_command, remove_offending_keys
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from thefuck.main import Command
|
||||
from thefuck.types import Command
|
||||
from thefuck.rules.sudo import match, get_new_command
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user