Skip to content
Snippets Groups Projects
Commit a9055eae authored by ulif's avatar ulif
Browse files

Ensure we can distinguish picked values.

parent 4cd82553
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment