Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
sshuttle
Commits
65d437a9
Commit
65d437a9
authored
Jan 16, 2021
by
masahitojp
Committed by
Brian May
Jan 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: remove mock from test dependencies.
Because mock can be replace by unittest.mock
parent
254b8e79
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
9 deletions
+7
-9
requirements-tests.txt
requirements-tests.txt
+0
-1
setup.py
setup.py
+0
-1
test_firewall.py
tests/client/test_firewall.py
+1
-1
test_helpers.py
tests/client/test_helpers.py
+1
-1
test_methods_nat.py
tests/client/test_methods_nat.py
+1
-1
test_methods_pf.py
tests/client/test_methods_pf.py
+1
-1
test_methods_tproxy.py
tests/client/test_methods_tproxy.py
+1
-1
test_sdnotify.py
tests/client/test_sdnotify.py
+1
-1
test_server.py
tests/server/test_server.py
+1
-1
No files found.
requirements-tests.txt
View file @
65d437a9
...
...
@@ -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
setup.py
View file @
65d437a9
...
...
@@ -69,7 +69,6 @@ setup(
'pytest'
,
'pytest-cov'
,
'pytest-runner'
,
'mock'
,
'flake8'
,
],
keywords
=
"ssh vpn"
,
...
...
tests/client/test_firewall.py
View file @
65d437a9
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
...
...
tests/client/test_helpers.py
View file @
65d437a9
...
...
@@ -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
...
...
tests/client/test_methods_nat.py
View file @
65d437a9
...
...
@@ -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
...
...
tests/client/test_methods_pf.py
View file @
65d437a9
...
...
@@ -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
...
...
tests/client/test_methods_tproxy.py
View file @
65d437a9
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
...
...
tests/client/test_sdnotify.py
View file @
65d437a9
import
socket
from
mock
import
Mock
,
patch
,
call
from
unittest.
mock
import
Mock
,
patch
,
call
import
sshuttle.sdnotify
...
...
tests/server/test_server.py
View file @
65d437a9
import
io
import
socket
from
mock
import
patch
,
Mock
from
unittest.
mock
import
patch
,
Mock
import
sshuttle.server
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment