summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_mediawiki.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/engines/test_mediawiki.py')
-rw-r--r--tests/unit/engines/test_mediawiki.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/engines/test_mediawiki.py b/tests/unit/engines/test_mediawiki.py
index 1b07dd8f4..b86372700 100644
--- a/tests/unit/engines/test_mediawiki.py
+++ b/tests/unit/engines/test_mediawiki.py
@@ -18,6 +18,10 @@ class TestMediawikiEngine(SearxTestCase):
self.assertIn('wikipedia.org', params['url'])
self.assertIn('fr', params['url'])
+ dicto['language'] = 'all'
+ params = mediawiki.request(query, dicto)
+ self.assertIn('en', params['url'])
+
mediawiki.base_url = "http://test.url/"
mediawiki.search_url = mediawiki.base_url +\
'w/api.php?action=query'\