Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
diceware-debian
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
diceware-debian
Commits
7ff2d0c1
Commit
7ff2d0c1
authored
8 years ago
by
ulif
Browse files
Options
Downloads
Patches
Plain Diff
pep8.
parent
37b21f14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_diceware.py
+4
-1
4 additions, 1 deletion
tests/test_diceware.py
with
4 additions
and
1 deletion
tests/test_diceware.py
+
4
−
1
View file @
7ff2d0c1
...
...
@@ -150,12 +150,15 @@ class TestHandleOptions(object):
def
test_handle_options_allows_plugins_updating
(
self
,
monkeypatch
):
# we allow plugins to update our argparser, before being used
import
diceware
class
FakePlugin
(
object
):
@classmethod
def
update_argparser
(
cls
,
parser
):
parser
.
add_argument
(
'
--foo
'
,
default
=
2
,
type
=
int
)
return
parser
monkeypatch
.
setattr
(
diceware
,
'
get_random_sources
'
,
lambda
:
dict
(
foo
=
FakePlugin
))
monkeypatch
.
setattr
(
diceware
,
'
get_random_sources
'
,
lambda
:
dict
(
foo
=
FakePlugin
))
options
=
handle_options
([])
assert
options
.
foo
==
2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment