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
070c247b
Commit
070c247b
authored
9 years ago
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing validators from default Option's value.
parent
bb4677df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
exploits.py
routersploit/exploits.py
+1
-1
test_exploits.py
routersploit/test/test_exploits.py
+2
-2
No files found.
routersploit/exploits.py
View file @
070c247b
...
...
@@ -15,7 +15,7 @@ class Option(object):
else
:
self
.
validators
=
(
validators
,)
self
.
default
=
self
.
_apply_widgets
(
default
)
self
.
default
=
default
self
.
description
=
description
self
.
data
=
WeakKeyDictionary
()
...
...
This diff is collapsed.
Click to expand it.
routersploit/test/test_exploits.py
View file @
070c247b
...
...
@@ -55,8 +55,8 @@ class OptionTest(RoutersploitTestCase):
self
.
assertEqual
(
self
.
exploit_bar
.
doo
,
3
)
self
.
assertEqual
(
self
.
exploit_bar
.
paa
,
4
)
def
test_if_validator_is_applied_on_default_value
(
self
):
self
.
assertEqual
(
self
.
exploit_with_validators
.
doo
,
"default_value
_suffix
"
)
def
test_if_validator_is_
NOT_
applied_on_default_value
(
self
):
self
.
assertEqual
(
self
.
exploit_with_validators
.
doo
,
"default_value"
)
def
test_if_validator_is_applied_after_setting_value
(
self
):
self
.
exploit_with_validators
.
doo
=
"new_value"
...
...
This diff is collapsed.
Click to expand it.
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