diff options
| author | Noémi Ványi <sitbackandwait@gmail.com> | 2019-01-06 15:27:46 +0100 |
|---|---|---|
| committer | Noémi Ványi <sitbackandwait@gmail.com> | 2019-01-07 21:19:00 +0100 |
| commit | b63d645a52d663036b97e31a59818d79faa4da81 (patch) | |
| tree | 6ba72217200a0f52f82ba8244afbee19c24d098c /tests/unit/engines/test_yahoo.py | |
| parent | 491792c1a58f71083f6af663bb6d93e40fa44c9f (diff) | |
Revert "remove 'all' option from search languages"
This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796.
Diffstat (limited to 'tests/unit/engines/test_yahoo.py')
| -rw-r--r-- | tests/unit/engines/test_yahoo.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/engines/test_yahoo.py b/tests/unit/engines/test_yahoo.py index 5037bfc7d..e52c1109e 100644 --- a/tests/unit/engines/test_yahoo.py +++ b/tests/unit/engines/test_yahoo.py @@ -50,6 +50,13 @@ class TestYahooEngine(SearxTestCase): self.assertIn('zh_cht', params['url']) self.assertIn('zh_cht', params['cookies']['sB']) + dicto['language'] = 'all' + params = yahoo.request(query, dicto) + self.assertIn('cookies', params) + self.assertIn('sB', params['cookies']) + self.assertIn('en', params['cookies']['sB']) + self.assertIn('en', params['url']) + def test_no_url_in_request_year_time_range(self): dicto = defaultdict(dict) query = 'test_query' |