SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] google engine tests
Alexandre Flament65e6737413ee
diff --git a/searx/tests/engines/test_google.py b/searx/tests/engines/test_google.pyindex 2c3d8e5f6..2a90fc5ec 100644--- a/searx/tests/engines/test_google.py+++ b/searx/tests/engines/test_google.py@@ -17,12 +17,13 @@ class TestGoogleEngine(SearxTestCase):self.assertIn('url', params)self.assertIn(query, params['url'])self.assertIn('google.com', params['url'])- self.assertIn('PREF', params['cookies'])+ self.assertNotIn('PREF', params['cookies'])self.assertIn('fr', params['headers']['Accept-Language'])dicto['language'] = 'all'params = google.request(query, dicto)self.assertIn('en', params['headers']['Accept-Language'])+ self.assertIn('PREF', params['cookies'])def test_response(self):self.assertRaises(AttributeError, google.response, None)