summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormasahitojp <randomstep@gmail.com>2021-01-16 09:59:28 +0900
committerBrian May <brian@linuxpenguins.xyz>2021-01-17 15:42:55 +1100
commit65d437a9f882ba652013e5a6ae8d72dd045ad96a (patch)
tree2ea677a15b5a21c71fbed13ca50eaaa46586d623 /tests
parent254b8e798747c8a7ccb8bc56323c05a480903e73 (diff)
feat: remove mock from test dependencies.
Because mock can be replace by unittest.mock
Diffstat (limited to 'tests')
-rw-r--r--tests/client/test_firewall.py2
-rw-r--r--tests/client/test_helpers.py2
-rw-r--r--tests/client/test_methods_nat.py2
-rw-r--r--tests/client/test_methods_pf.py2
-rw-r--r--tests/client/test_methods_tproxy.py2
-rw-r--r--tests/client/test_sdnotify.py2
-rw-r--r--tests/server/test_server.py2
7 files changed, 7 insertions, 7 deletions
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