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
a9055eae
Commit
a9055eae
authored
8 years ago
by
ulif
Browse files
Options
Downloads
Patches
Plain Diff
Ensure we can distinguish picked values.
parent
4cd82553
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_random_sources.py
+2
-2
2 additions, 2 deletions
tests/test_random_sources.py
with
2 additions
and
2 deletions
tests/test_random_sources.py
+
2
−
2
View file @
a9055eae
...
...
@@ -252,11 +252,11 @@ class TestRealDiceRandomSource(object):
assert
picked
==
1
# A length of 4,5 requires 2 rolls
for
choice_length
in
(
4
,
5
):
fake_input
([
"
1
"
,
"
1
"
])
fake_input
([
"
1
"
,
"
2
"
])
picked
=
src
.
choice
(
range
(
1
,
choice_length
+
1
))
out
,
err
=
capsys
.
readouterr
()
assert
"
roll 2 dice
"
in
out
assert
picked
==
1
assert
picked
==
2
def
test_choice_respects_dice_sides
(
self
,
capsys
,
fake_input
):
# we use the number of dice sides given by options dict.
...
...
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