From bd17544f82809ef57f09aa95dc735e7c9056717e Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 3 Aug 2021 15:11:02 +0200 Subject: [PATCH] [fix] make test.robot: firefox profile: intl.accept_languages=en make sure Firefox in test.robot asks for English pages --- searx/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/testing.py b/searx/testing.py index e5c1bd313..b31ba8997 100644 --- a/searx/testing.py +++ b/searx/testing.py @@ -79,7 +79,7 @@ class SearxRobotLayer(): def run_robot_tests(tests): print('Running {0} tests'.format(len(tests))) for test in tests: - with Browser('firefox', headless=True) as browser: + with Browser('firefox', headless=True, profile_preferences={'intl.accept_languages': 'en'}) as browser: test(browser)