mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-16 10:29:36 +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
|
attrs==20.3.0
|
||||||
pytest==6.2.1
|
pytest==6.2.1
|
||||||
pytest-cov==2.10.1
|
pytest-cov==2.10.1
|
||||||
mock==4.0.3
|
|
||||||
flake8==3.8.4
|
flake8==3.8.4
|
||||||
pyflakes==2.2.0
|
pyflakes==2.2.0
|
||||||
|
1
setup.py
1
setup.py
@ -69,7 +69,6 @@ setup(
|
|||||||
'pytest',
|
'pytest',
|
||||||
'pytest-cov',
|
'pytest-cov',
|
||||||
'pytest-runner',
|
'pytest-runner',
|
||||||
'mock',
|
|
||||||
'flake8',
|
'flake8',
|
||||||
],
|
],
|
||||||
keywords="ssh vpn",
|
keywords="ssh vpn",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import io
|
import io
|
||||||
from socket import AF_INET, AF_INET6
|
from socket import AF_INET, AF_INET6
|
||||||
|
|
||||||
from mock import Mock, patch, call
|
from unittest.mock import Mock, patch, call
|
||||||
import sshuttle.firewall
|
import sshuttle.firewall
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import socket
|
|||||||
from socket import AF_INET, AF_INET6
|
from socket import AF_INET, AF_INET6
|
||||||
import errno
|
import errno
|
||||||
|
|
||||||
from mock import patch, call
|
from unittest.mock import patch, call
|
||||||
import sshuttle.helpers
|
import sshuttle.helpers
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ from socket import AF_INET, AF_INET6
|
|||||||
import struct
|
import struct
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from mock import Mock, patch, call
|
from unittest.mock import Mock, patch, call
|
||||||
from sshuttle.helpers import Fatal
|
from sshuttle.helpers import Fatal
|
||||||
from sshuttle.methods import get_method
|
from sshuttle.methods import get_method
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import socket
|
|||||||
from socket import AF_INET, AF_INET6
|
from socket import AF_INET, AF_INET6
|
||||||
|
|
||||||
import pytest
|
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.methods import get_method
|
||||||
from sshuttle.helpers import Fatal, get_env
|
from sshuttle.helpers import Fatal, get_env
|
||||||
from sshuttle.methods.pf import FreeBsd, Darwin, OpenBsd
|
from sshuttle.methods.pf import FreeBsd, Darwin, OpenBsd
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import socket
|
import socket
|
||||||
from socket import AF_INET, AF_INET6
|
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
|
from sshuttle.methods import get_method
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import socket
|
import socket
|
||||||
|
|
||||||
from mock import Mock, patch, call
|
from unittest.mock import Mock, patch, call
|
||||||
|
|
||||||
import sshuttle.sdnotify
|
import sshuttle.sdnotify
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import io
|
import io
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
from mock import patch, Mock
|
from unittest.mock import patch, Mock
|
||||||
|
|
||||||
import sshuttle.server
|
import sshuttle.server
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user