diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-11-07 22:30:20 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-11-07 22:30:20 +0100 |
commit | 16ff8d06c73d3e0ec784e8c9a1fb38b36a95d8fb (patch) | |
tree | 6330717ee3115eed8c135bb0512c5b6525c5522f /tests | |
parent | 7d26b3f8f8659491d3da94aeb71bd0d9b5f7a257 (diff) | |
download | searxng-16ff8d06c73d3e0ec784e8c9a1fb38b36a95d8fb.tar.gz searxng-16ff8d06c73d3e0ec784e8c9a1fb38b36a95d8fb.zip |
[fix] bing paging and language support
see https://msdn.microsoft.com/en-us/library/ff795620.aspx for bing
specific search operators
closes #755
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/engines/test_bing.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/unit/engines/test_bing.py b/tests/unit/engines/test_bing.py index bce221440..886584229 100644 --- a/tests/unit/engines/test_bing.py +++ b/tests/unit/engines/test_bing.py @@ -14,14 +14,12 @@ class TestBingEngine(SearxTestCase): params = bing.request(query, dicto) self.assertTrue('url' in params) self.assertTrue(query in params['url']) + self.assertTrue('language%3AFR' in params['url']) self.assertTrue('bing.com' in params['url']) - self.assertTrue('SRCHHPGUSR' in params['cookies']) - self.assertTrue('fr' in params['cookies']['SRCHHPGUSR']) dicto['language'] = 'all' params = bing.request(query, dicto) - self.assertTrue('SRCHHPGUSR' in params['cookies']) - self.assertTrue('en' in params['cookies']['SRCHHPGUSR']) + self.assertTrue('language' not in params['url']) def test_response(self): self.assertRaises(AttributeError, bing.response, None) |