summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2026-07-29 17:11:53 +0200
committerBnyro <bnyro@tutanota.com>2026-07-30 14:54:39 +0200
commita449518ed410407e9bebefcf45efca50a880d722 (patch)
treef94a1f595876489ef2497b1f50297963b82b9e23 /tests
parent702f702f9b526c94049113dd33a0b4cf8ea0e116 (diff)
[mod] engines: replace [random.choice(...) for ... in range(..)] with random.choices
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_utils.py2
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):