diff options
| author | Bnyro <bnyro@tutanota.com> | 2026-07-29 17:11:53 +0200 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2026-07-30 14:54:39 +0200 |
| commit | a449518ed410407e9bebefcf45efca50a880d722 (patch) | |
| tree | f94a1f595876489ef2497b1f50297963b82b9e23 /tests | |
| parent | 702f702f9b526c94049113dd33a0b4cf8ea0e116 (diff) | |
[mod] engines: replace [random.choice(...) for ... in range(..)] with random.choices
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 271ec629b..fc30ac33a 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -13,7 +13,7 @@ from tests import SearxTestCase def random_string(length, choices=string.ascii_letters): - return ''.join(random.choice(choices) for _ in range(length)) + return ''.join(random.choices(choices, k=length)) class TestUtils(SearxTestCase): |
