summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2015-05-02 13:21:01 +0200
committerAlexandre Flament <alex@al-f.net>2015-05-02 13:21:01 +0200
commit65e6737413ee1cc27348258ff1586c98bf38da37 (patch)
treea239f683d515ad60fd9672da1f4fece21684303c
parent8a69ade875e238579308d1efb769c5e5cb367b47 (diff)
downloadsearxng-65e6737413ee1cc27348258ff1586c98bf38da37.tar.gz
searxng-65e6737413ee1cc27348258ff1586c98bf38da37.zip
[fix] google engine tests
-rw-r--r--searx/tests/engines/test_google.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/tests/engines/test_google.py b/searx/tests/engines/test_google.py
index 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)