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

@ -2,6 +2,5 @@
attrs==20.3.0
pytest==6.2.1
pytest-cov==2.10.1
mock==4.0.3
flake8==3.8.4
pyflakes==2.2.0

View File

@ -69,7 +69,6 @@ setup(
'pytest',
'pytest-cov',
'pytest-runner',
'mock',
'flake8',
],
keywords="ssh vpn",

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