We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a047aad commit 2898618Copy full SHA for 2898618
tests/secret.py
@@ -8,12 +8,14 @@
8
random.seed(os.environ.get("TEST_SEED", None))
9
10
# parameters
11
-LENGTH: int = 16
12
-CHARS: str = string.printable.replace(",", "") # all but ","
+PASS_LENGTH: int = 16
+PASS_CHARS: str = string.printable.replace(",", "") # all but ","
13
+
14
+# user logins to generate
15
USERS: list[str] = ["calvin", "hobbes", "susie", "moe"]
16
17
# login -> clear-password
18
PASSES: dict[str, str] = {
- login: "".join(random.choice(CHARS) for _ in range(LENGTH))
19
+ login: "".join(random.choice(PASS_CHARS) for _ in range(PASS_LENGTH))
20
for login in USERS
21
}
0 commit comments