feat: remove mock from test dependencies.

Because mock can be replace by unittest.mock
This commit is contained in:
masahitojp
2021-01-16 09:59:28 +09:00
committed by Brian May
parent 254b8e7987
commit 65d437a9f8
9 changed files with 7 additions and 9 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,6 +1,6 @@
import socket
from mock import Mock, patch, call
from unittest.mock import Mock, patch, call
import sshuttle.sdnotify

View File

@@ -1,7 +1,7 @@
import io
import socket
from mock import patch, Mock
from unittest.mock import patch, Mock
import sshuttle.server