Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
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
czos-dpend
routersploit
Commits
f427143c
Commit
f427143c
authored
May 13, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes so tests can be run from PyCharm test runner.
parent
fa14f730
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
test_exploits.py
routersploit/test/test_exploits.py
+6
-4
test_interpreter.py
routersploit/test/test_interpreter.py
+0
-1
test_utils.py
routersploit/test/test_utils.py
+0
-2
test_widgets.py
routersploit/test/test_widgets.py
+7
-4
No files found.
routersploit/test/test_exploits.py
View file @
f427143c
from
__future__
import
print_function
from
__future__
import
absolute_import
import
unittest
try
:
import
unittest.mock
as
mock
except
ImportError
:
import
mock
from
.
import
RoutersploitTestCase
from
.
.exploits
import
Exploit
,
Option
from
routersploit.test
import
RoutersploitTestCase
from
routersploit
.exploits
import
Exploit
,
Option
def
suffix
(
x
):
...
...
@@ -67,3 +66,6 @@ class OptionTest(RoutersploitTestCase):
self
.
exploit_with_widgets
.
paa
=
"new_value"
self
.
assertEqual
(
self
.
exploit_with_widgets
.
paa
,
"new_value_suffix_SUFFIX"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
routersploit/test/test_interpreter.py
View file @
f427143c
from
__future__
import
print_function
import
unittest
import
os
...
...
routersploit/test/test_utils.py
View file @
f427143c
from
__future__
import
print_function
from
__future__
import
absolute_import
import
unittest
try
:
...
...
routersploit/test/test_widgets.py
View file @
f427143c
from
__future__
import
print_function
from
__future__
import
absolute_import
import
unittest
try
:
import
unittest.mock
as
mock
except
ImportError
:
import
mock
from
.
import
RoutersploitTestCase
from
..
import
widgets
from
routersploit.test
import
RoutersploitTestCase
from
routersploit
import
widgets
class
WidgetsTest
(
RoutersploitTestCase
):
...
...
@@ -19,3 +18,7 @@ class WidgetsTest(RoutersploitTestCase):
def
test_url_already_with_https_prefix
(
self
):
self
.
assertEqual
(
widgets
.
url
(
"https://127.0.0.1"
),
"https://127.0.0.1"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
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