1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-31 02:01:13 +00:00

Update tests: mock is now part of unittest

This commit is contained in:
Dominik Heidler 2024-02-28 13:14:33 +01:00
parent c7e7e1d884
commit 8804e5e0b8
10 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
from mock import Mock from unittest.mock import Mock
import pytest import pytest
from thefuck.entrypoints.alias import _get_alias, print_alias from thefuck.entrypoints.alias import _get_alias, print_alias

View File

@ -1,5 +1,5 @@
import pytest import pytest
from mock import Mock from unittest.mock import Mock
from thefuck.entrypoints.fix_command import _get_raw_command from thefuck.entrypoints.fix_command import _get_raw_command

View File

@ -1,7 +1,7 @@
import pytest import pytest
import json import json
from six import StringIO from six import StringIO
from mock import MagicMock from unittest.mock import MagicMock
from thefuck.shells.generic import ShellConfiguration from thefuck.shells.generic import ShellConfiguration
from thefuck.entrypoints.not_configured import main from thefuck.entrypoints.not_configured import main

View File

@ -2,7 +2,7 @@
import pytest import pytest
import sys import sys
from mock import Mock, patch from unittest.mock import Mock, patch
from psutil import AccessDenied, TimeoutExpired from psutil import AccessDenied, TimeoutExpired
from thefuck.output_readers import rerun from thefuck.output_readers import rerun

View File

@ -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.rules.has_exists_script import match, get_new_command
from thefuck.types import Command from thefuck.types import Command

View File

@ -1,5 +1,5 @@
import pytest import pytest
from mock import patch from unittest.mock import patch
from thefuck.rules import pacman from thefuck.rules import pacman
from thefuck.rules.pacman import match, get_new_command from thefuck.rules.pacman import match, get_new_command
from thefuck.types import Command from thefuck.types import Command

View File

@ -1,5 +1,5 @@
import pytest import pytest
from mock import patch from unittest.mock import patch
from thefuck.rules import pacman_not_found from thefuck.rules import pacman_not_found
from thefuck.rules.pacman_not_found import match, get_new_command from thefuck.rules.pacman_not_found import match, get_new_command
from thefuck.types import Command from thefuck.types import Command

View File

@ -1,7 +1,7 @@
import pytest import pytest
import six import six
import os import os
from mock import Mock from unittest.mock import Mock
from thefuck import const from thefuck import const

View File

@ -2,7 +2,7 @@
import os import os
from subprocess import PIPE, STDOUT from subprocess import PIPE, STDOUT
from mock import Mock from unittest.mock import Mock
import pytest import pytest
from tests.utils import CorrectedCommand, Rule from tests.utils import CorrectedCommand, Rule
from thefuck import const from thefuck import const

View File

@ -2,7 +2,7 @@
import pytest import pytest
import warnings import warnings
from mock import Mock, call, patch from unittest.mock import Mock, call, patch
from thefuck.utils import default_settings, \ from thefuck.utils import default_settings, \
memoize, get_closest, get_all_executables, replace_argument, \ memoize, get_closest, get_all_executables, replace_argument, \
get_all_matched_commands, is_app, for_app, cache, \ get_all_matched_commands, is_app, for_app, cache, \