Skip to content

Commit 2898618

Browse files
author
Fabien Coelho
committed
improve code & comments
1 parent a047aad commit 2898618

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/secret.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
random.seed(os.environ.get("TEST_SEED", None))
99

1010
# parameters
11-
LENGTH: int = 16
12-
CHARS: str = string.printable.replace(",", "") # all but ","
11+
PASS_LENGTH: int = 16
12+
PASS_CHARS: str = string.printable.replace(",", "") # all but ","
13+
14+
# user logins to generate
1315
USERS: list[str] = ["calvin", "hobbes", "susie", "moe"]
1416

1517
# login -> clear-password
1618
PASSES: dict[str, str] = {
17-
login: "".join(random.choice(CHARS) for _ in range(LENGTH))
19+
login: "".join(random.choice(PASS_CHARS) for _ in range(PASS_LENGTH))
1820
for login in USERS
1921
}

0 commit comments

Comments
 (0)