1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

tests/config: flake8 6.0.0 doesn't like var-name l

But it's fine with `s`.
This commit is contained in:
Athanasius 2022-12-05 16:08:00 +00:00
parent baadf10158
commit 5885e6698c
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -41,7 +41,7 @@ def _fuzz_list(length: int) -> List[str]:
_fuzz_generators = { # Type annotating this would be a nightmare.
int: lambda i: random.randint(min(0, i), max(0, i)),
# This doesn't cover unicode, or random bytes. Use them at your own peril
str: lambda l: "".join(random.choice(string.ascii_letters + string.digits + '\r\n') for _ in range(l)),
str: lambda s: "".join(random.choice(string.ascii_letters + string.digits + '\r\n') for _ in range(s)),
bool: lambda _: bool(random.choice((True, False))),
list: _fuzz_list,
}