mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-21 23:43:18 +01:00
feat: remove mock from test dependencies.
Because mock can be replace by unittest.mock
This commit is contained in:
parent
254b8e7987
commit
65d437a9f8
@ -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
|
||||
|
1
setup.py
1
setup.py
@ -69,7 +69,6 @@ setup(
|
||||
'pytest',
|
||||
'pytest-cov',
|
||||
'pytest-runner',
|
||||
'mock',
|
||||
'flake8',
|
||||
],
|
||||
keywords="ssh vpn",
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user