summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_swisscows.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/engines/test_swisscows.py')
-rw-r--r--tests/unit/engines/test_swisscows.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/engines/test_swisscows.py b/tests/unit/engines/test_swisscows.py
index 133f636de..fbfcc94cc 100644
--- a/tests/unit/engines/test_swisscows.py
+++ b/tests/unit/engines/test_swisscows.py
@@ -8,6 +8,7 @@ class TestSwisscowsEngine(SearxTestCase):
def test_request(self):
swisscows.supported_languages = ['de-AT', 'de-DE']
+ swisscows.language_aliases = {}
query = 'test_query'
dicto = defaultdict(dict)
dicto['pageno'] = 1
@@ -19,6 +20,11 @@ class TestSwisscowsEngine(SearxTestCase):
self.assertTrue('uiLanguage=de' in params['url'])
self.assertTrue('region=de-DE' in params['url'])
+ dicto['language'] = 'all'
+ params = swisscows.request(query, dicto)
+ self.assertTrue('uiLanguage=browser' in params['url'])
+ self.assertTrue('region=browser' in params['url'])
+
dicto['category'] = 'images'
params = swisscows.request(query, dicto)
self.assertIn('image', params['url'])