Skip to content

Commit 345d34d

Browse files
committed
Replace secrets module with random
The secrets module does not exist in Python 3.5 Contributes to #181 Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
1 parent b8df85a commit 345d34d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/fixtures/probes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,11 @@ def must_be_in_range(a: int, b: int, value: Any = None) -> bool:
391391
"name": "generate-token",
392392
"provider": {
393393
"type": "python",
394-
"module": "secrets",
395-
"func": "token_hex"
394+
"module": "random",
395+
"func": "choice",
396+
"arguments": {
397+
"seq": ["RED", "BLUE", "YELLOW"]
398+
}
396399
}
397400
}
398401

0 commit comments

Comments
 (0)