summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_yahoo_news.py
diff options
context:
space:
mode:
authorNoémi Ványi <kvch@users.noreply.github.com>2019-01-15 22:11:26 +0100
committerGitHub <noreply@github.com>2019-01-15 22:11:26 +0100
commit25367cfba13de9bec580d7d495c4e70b8ea8f76d (patch)
treebc4f87b06f658d13d8e4f6a553b5ab90ffe00ed8 /tests/unit/engines/test_yahoo_news.py
parent4977ea5405954107d071235093f01d0246c31fb2 (diff)
parent383e3cc554a3704cd8b076aa686f32b8ce78f681 (diff)
Merge branch 'master' into setup-no-tests
Diffstat (limited to 'tests/unit/engines/test_yahoo_news.py')
-rw-r--r--tests/unit/engines/test_yahoo_news.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/engines/test_yahoo_news.py b/tests/unit/engines/test_yahoo_news.py
index c3297dacf..ae27df2a5 100644
--- a/tests/unit/engines/test_yahoo_news.py
+++ b/tests/unit/engines/test_yahoo_news.py
@@ -23,6 +23,13 @@ class TestYahooNewsEngine(SearxTestCase):
self.assertIn('sB', params['cookies'])
self.assertIn('fr', params['cookies']['sB'])
+ dicto['language'] = 'all'
+ params = yahoo_news.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_sanitize_url(self):
url = "test.url"
self.assertEqual(url, yahoo_news.sanitize_url(url))