From 65d437a9f882ba652013e5a6ae8d72dd045ad96a Mon Sep 17 00:00:00 2001 From: masahitojp Date: Sat, 16 Jan 2021 09:59:28 +0900 Subject: feat: remove mock from test dependencies. Because mock can be replace by unittest.mock --- tests/client/test_firewall.py | 2 +- tests/client/test_helpers.py | 2 +- tests/client/test_methods_nat.py | 2 +- tests/client/test_methods_pf.py | 2 +- tests/client/test_methods_tproxy.py | 2 +- tests/client/test_sdnotify.py | 2 +- tests/server/test_server.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/client/test_firewall.py b/tests/client/test_firewall.py index 71f1940..4a32904 100644 --- a/tests/client/test_firewall.py +++ b/tests/client/test_firewall.py @@ -1,7 +1,7 @@ import io from socket import AF_INET, AF_INET6 -from mock import Mock, patch, call +from unittest.mock import Mock, patch, call import sshuttle.firewall diff --git a/tests/client/test_helpers.py b/tests/client/test_helpers.py index f252628..45e7ea5 100644 --- a/tests/client/test_helpers.py +++ b/tests/client/test_helpers.py @@ -3,7 +3,7 @@ import socket from socket import AF_INET, AF_INET6 import errno -from mock import patch, call +from unittest.mock import patch, call import sshuttle.helpers diff --git a/tests/client/test_methods_nat.py b/tests/client/test_methods_nat.py index a9d2a25..e528a6b 100644 --- a/tests/client/test_methods_nat.py +++ b/tests/client/test_methods_nat.py @@ -3,7 +3,7 @@ from socket import AF_INET, AF_INET6 import struct import pytest -from mock import Mock, patch, call +from unittest.mock import Mock, patch, call from sshuttle.helpers import Fatal from sshuttle.methods import get_method diff --git a/tests/client/test_methods_pf.py b/tests/client/test_methods_pf.py index bf600ba..c92e9f1 100644 --- a/tests/client/test_methods_pf.py +++ b/tests/client/test_methods_pf.py @@ -2,7 +2,7 @@ import socket from socket import AF_INET, AF_INET6 import pytest -from mock import Mock, patch, call, ANY +from unittest.mock import Mock, patch, call, ANY from sshuttle.methods import get_method from sshuttle.helpers import Fatal, get_env from sshuttle.methods.pf import FreeBsd, Darwin, OpenBsd diff --git a/tests/client/test_methods_tproxy.py b/tests/client/test_methods_tproxy.py index da85fd7..2375bc0 100644 --- a/tests/client/test_methods_tproxy.py +++ b/tests/client/test_methods_tproxy.py @@ -1,7 +1,7 @@ import socket from socket import AF_INET, AF_INET6 -from mock import Mock, patch, call +from unittest.mock import Mock, patch, call from sshuttle.methods import get_method diff --git a/tests/client/test_sdnotify.py b/tests/client/test_sdnotify.py index b664ee7..353ad48 100644 --- a/tests/client/test_sdnotify.py +++ b/tests/client/test_sdnotify.py @@ -1,6 +1,6 @@ import socket -from mock import Mock, patch, call +from unittest.mock import Mock, patch, call import sshuttle.sdnotify diff --git a/tests/server/test_server.py b/tests/server/test_server.py index 86f421c..6a5d683 100644 --- a/tests/server/test_server.py +++ b/tests/server/test_server.py @@ -1,7 +1,7 @@ import io import socket -from mock import patch, Mock +from unittest.mock import patch, Mock import sshuttle.server -- cgit v1.2.3