diff --git a/tests/entrypoints/test_alias.py b/tests/entrypoints/test_alias.py index ddb13e1f..26e74bf1 100644 --- a/tests/entrypoints/test_alias.py +++ b/tests/entrypoints/test_alias.py @@ -1,4 +1,4 @@ -from mock import Mock +from unittest.mock import Mock import pytest from thefuck.entrypoints.alias import _get_alias, print_alias diff --git a/tests/entrypoints/test_fix_command.py b/tests/entrypoints/test_fix_command.py index 3012bb4f..e1ad2a86 100644 --- a/tests/entrypoints/test_fix_command.py +++ b/tests/entrypoints/test_fix_command.py @@ -1,5 +1,5 @@ import pytest -from mock import Mock +from unittest.mock import Mock from thefuck.entrypoints.fix_command import _get_raw_command diff --git a/tests/entrypoints/test_not_configured.py b/tests/entrypoints/test_not_configured.py index 79ed29f5..f4c225a2 100644 --- a/tests/entrypoints/test_not_configured.py +++ b/tests/entrypoints/test_not_configured.py @@ -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 diff --git a/tests/output_readers/test_rerun.py b/tests/output_readers/test_rerun.py index adae9024..92a8cdb0 100644 --- a/tests/output_readers/test_rerun.py +++ b/tests/output_readers/test_rerun.py @@ -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 diff --git a/tests/rules/test_has_exists_script.py b/tests/rules/test_has_exists_script.py index 7814a753..9f292e47 100644 --- a/tests/rules/test_has_exists_script.py +++ b/tests/rules/test_has_exists_script.py @@ -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 diff --git a/tests/rules/test_pacman.py b/tests/rules/test_pacman.py index 985b8b89..ffbf526b 100644 --- a/tests/rules/test_pacman.py +++ b/tests/rules/test_pacman.py @@ -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 diff --git a/tests/rules/test_pacman_not_found.py b/tests/rules/test_pacman_not_found.py index 22c0609b..1c98f0af 100644 --- a/tests/rules/test_pacman_not_found.py +++ b/tests/rules/test_pacman_not_found.py @@ -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 diff --git a/tests/test_conf.py b/tests/test_conf.py index e03473ab..72d7d7e3 100644 --- a/tests/test_conf.py +++ b/tests/test_conf.py @@ -1,7 +1,7 @@ import pytest import six import os -from mock import Mock +from unittest.mock import Mock from thefuck import const diff --git a/tests/test_types.py b/tests/test_types.py index a322d21e..5d4455e1 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -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 diff --git a/tests/test_utils.py b/tests/test_utils.py index 95f92bcb..78d468ab 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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, \