mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-08-17 20:11:02 +02:00
feat: remove mock from test dependencies.
Because mock can be replace by unittest.mock
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import socket
|
||||
|
||||
from mock import Mock, patch, call
|
||||
from unittest.mock import Mock, patch, call
|
||||
|
||||
import sshuttle.sdnotify
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import io
|
||||
import socket
|
||||
|
||||
from mock import patch, Mock
|
||||
from unittest.mock import patch, Mock
|
||||
|
||||
import sshuttle.server
|
||||
|
||||
|
Reference in New Issue
Block a user