diff options
Diffstat (limited to 'tests/unit/engines/test_yahoo_news.py')
-rw-r--r-- | tests/unit/engines/test_yahoo_news.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/engines/test_yahoo_news.py b/tests/unit/engines/test_yahoo_news.py index bc87ec067..c3297dacf 100644 --- a/tests/unit/engines/test_yahoo_news.py +++ b/tests/unit/engines/test_yahoo_news.py @@ -9,10 +9,11 @@ from searx.testing import SearxTestCase class TestYahooNewsEngine(SearxTestCase): def test_request(self): + yahoo_news.supported_languages = ['en', 'fr'] query = 'test_query' dicto = defaultdict(dict) dicto['pageno'] = 1 - dicto['language'] = 'fr_FR' + dicto['language'] = 'fr-FR' params = yahoo_news.request(query, dicto) self.assertIn('url', params) self.assertIn(query, params['url']) |