summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_qwant.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-12-06 14:34:26 +0100
committerGitHub <noreply@github.com>2017-12-06 14:34:26 +0100
commit49b845051f027cf9d29a20821968103a0f55c9d9 (patch)
tree249693fb31423283ee21c5ded4bed844d7250f2e /tests/unit/engines/test_qwant.py
parentdf0b8ee5270a37642ccf5f42e95b0656aefc7fda (diff)
parent4d1770398a6af8902e75c0bd885781584d39e796 (diff)
Merge pull request #973 from MarcAbonce/languages
Remove 'all' option from search languages
Diffstat (limited to 'tests/unit/engines/test_qwant.py')
-rw-r--r--tests/unit/engines/test_qwant.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/engines/test_qwant.py b/tests/unit/engines/test_qwant.py
index b7133c076..46694988c 100644
--- a/tests/unit/engines/test_qwant.py
+++ b/tests/unit/engines/test_qwant.py
@@ -19,10 +19,11 @@ class TestQwantEngine(SearxTestCase):
self.assertIn('qwant.com', params['url'])
self.assertIn('fr_fr', params['url'])
- dicto['language'] = 'all'
+ dicto['language'] = 'en-US'
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'])
qwant.supported_languages = ['en', 'fr-FR', 'fr-CA']