summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_qwant.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_qwant.py
parent4977ea5405954107d071235093f01d0246c31fb2 (diff)
parent383e3cc554a3704cd8b076aa686f32b8ce78f681 (diff)
Merge branch 'master' into setup-no-tests
Diffstat (limited to 'tests/unit/engines/test_qwant.py')
-rw-r--r--tests/unit/engines/test_qwant.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/engines/test_qwant.py b/tests/unit/engines/test_qwant.py
index 86bfb22da..6611264f8 100644
--- a/tests/unit/engines/test_qwant.py
+++ b/tests/unit/engines/test_qwant.py
@@ -8,6 +8,7 @@ class TestQwantEngine(SearxTestCase):
def test_request(self):
qwant.supported_languages = ['en-US', 'fr-CA', 'fr-FR']
+ qwant.language_aliases = {}
query = 'test_query'
dicto = defaultdict(dict)
dicto['pageno'] = 0
@@ -20,11 +21,10 @@ class TestQwantEngine(SearxTestCase):
self.assertIn('qwant.com', params['url'])
self.assertIn('fr_fr', params['url'])
- dicto['language'] = 'en-US'
+ dicto['language'] = 'all'
qwant.categories = ['news']
params = qwant.request(query, dicto)
self.assertFalse('fr' in params['url'])
- self.assertIn('en_us', params['url'])
self.assertIn('news', params['url'])
dicto['language'] = 'fr'