summaryrefslogtreecommitdiff
path: root/searx/tests
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-05-02 13:34:53 -0400
committerAdam Tauber <asciimoo@gmail.com>2015-05-02 13:34:53 -0400
commit01de1c6f7808f45698c2207ae1f1b73c1132b088 (patch)
treea239f683d515ad60fd9672da1f4fece21684303c /searx/tests
parentbbd83f5a519381ac7ea690a1645258d106a9ba8a (diff)
parent65e6737413ee1cc27348258ff1586c98bf38da37 (diff)
downloadsearxng-01de1c6f7808f45698c2207ae1f1b73c1132b088.tar.gz
searxng-01de1c6f7808f45698c2207ae1f1b73c1132b088.zip
Merge pull request #303 from dalf/patch-1
Revert of #195 when the search language is not english
Diffstat (limited to 'searx/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)