mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
Update tests: mock is now part of unittest
This commit is contained in:
parent
c7e7e1d884
commit
8804e5e0b8
@ -1,4 +1,4 @@
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
import pytest
|
||||
from thefuck.entrypoints.alias import _get_alias, print_alias
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
from thefuck.entrypoints.fix_command import _get_raw_command
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
import json
|
||||
from six import StringIO
|
||||
from mock import MagicMock
|
||||
from unittest.mock import MagicMock
|
||||
from thefuck.shells.generic import ShellConfiguration
|
||||
from thefuck.entrypoints.not_configured import main
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
import pytest
|
||||
import sys
|
||||
from mock import Mock, patch
|
||||
from unittest.mock import Mock, patch
|
||||
from psutil import AccessDenied, TimeoutExpired
|
||||
|
||||
from thefuck.output_readers import rerun
|
||||
|
@ -1,4 +1,4 @@
|
||||
from mock import patch
|
||||
from unittest.mock import patch
|
||||
from thefuck.rules.has_exists_script import match, get_new_command
|
||||
from thefuck.types import Command
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from mock import patch
|
||||
from unittest.mock import patch
|
||||
from thefuck.rules import pacman
|
||||
from thefuck.rules.pacman import match, get_new_command
|
||||
from thefuck.types import Command
|
||||
|
@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from mock import patch
|
||||
from unittest.mock import patch
|
||||
from thefuck.rules import pacman_not_found
|
||||
from thefuck.rules.pacman_not_found import match, get_new_command
|
||||
from thefuck.types import Command
|
||||
|
@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
import six
|
||||
import os
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
from thefuck import const
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
import os
|
||||
from subprocess import PIPE, STDOUT
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
import pytest
|
||||
from tests.utils import CorrectedCommand, Rule
|
||||
from thefuck import const
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
import pytest
|
||||
import warnings
|
||||
from mock import Mock, call, patch
|
||||
from unittest.mock import Mock, call, patch
|
||||
from thefuck.utils import default_settings, \
|
||||
memoize, get_closest, get_all_executables, replace_argument, \
|
||||
get_all_matched_commands, is_app, for_app, cache, \
|
||||
|
Loading…
x
Reference in New Issue
Block a user