summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_yahoo_news.py
diff options
context:
space:
mode:
authord-tux <deniswernert@gmail.com>2019-01-08 09:24:45 +0100
committerGitHub <noreply@github.com>2019-01-08 09:24:45 +0100
commit329172f66e7ad066f7cdd24db5d414c816ad8a80 (patch)
tree426482bdcb8f5fd0b2f5e983ae4a0bbb17fc21d9 /tests/unit/engines/test_yahoo_news.py
parent4a127b19de860a1f1e75f597dc0d53bfdd06e52e (diff)
parent2438b3c77a3ad276aaeb15e5a54315d351a42273 (diff)
Merge branch 'master' into engines/unsplash
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))