diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-07-26 00:22:05 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-07-26 00:28:48 +0200 |
commit | 350a84520d9da2499ffd5b0fbe6218692f2a330d (patch) | |
tree | 03dd22bea46a817084d782feef8df63f8cd2b375 /tests | |
parent | 3a8d193d1f746165df35e573f18c7abee970feb0 (diff) | |
download | searxng-350a84520d9da2499ffd5b0fbe6218692f2a330d.tar.gz searxng-350a84520d9da2499ffd5b0fbe6218692f2a330d.zip |
[fix] time range detection
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/engines/test_deviantart.py | 1 | ||||
-rw-r--r-- | tests/unit/engines/test_duckduckgo.py | 1 | ||||
-rw-r--r-- | tests/unit/engines/test_google.py | 1 | ||||
-rw-r--r-- | tests/unit/engines/test_google_images.py | 1 | ||||
-rw-r--r-- | tests/unit/engines/test_yahoo.py | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/engines/test_deviantart.py b/tests/unit/engines/test_deviantart.py index c00bb8fab..75c59f760 100644 --- a/tests/unit/engines/test_deviantart.py +++ b/tests/unit/engines/test_deviantart.py @@ -10,6 +10,7 @@ class TestDeviantartEngine(SearxTestCase): query = 'test_query' dicto = defaultdict(dict) dicto['pageno'] = 0 + dicto['time_range'] = '' params = deviantart.request(query, dicto) self.assertTrue('url' in params) self.assertTrue(query in params['url']) diff --git a/tests/unit/engines/test_duckduckgo.py b/tests/unit/engines/test_duckduckgo.py index 90cdc9d9e..cb866d396 100644 --- a/tests/unit/engines/test_duckduckgo.py +++ b/tests/unit/engines/test_duckduckgo.py @@ -12,6 +12,7 @@ class TestDuckduckgoEngine(SearxTestCase): dicto = defaultdict(dict) dicto['pageno'] = 1 dicto['language'] = 'de_CH' + dicto['time_range'] = '' params = duckduckgo.request(query, dicto) self.assertIn('url', params) self.assertIn(query, params['url']) diff --git a/tests/unit/engines/test_google.py b/tests/unit/engines/test_google.py index 37a83cae3..8e73e2ab7 100644 --- a/tests/unit/engines/test_google.py +++ b/tests/unit/engines/test_google.py @@ -19,6 +19,7 @@ class TestGoogleEngine(SearxTestCase): dicto = defaultdict(dict) dicto['pageno'] = 1 dicto['language'] = 'fr_FR' + dicto['time_range'] = '' params = google.request(query, dicto) self.assertIn('url', params) self.assertIn(query, params['url']) diff --git a/tests/unit/engines/test_google_images.py b/tests/unit/engines/test_google_images.py index 5f184e00c..1cfba60b3 100644 --- a/tests/unit/engines/test_google_images.py +++ b/tests/unit/engines/test_google_images.py @@ -11,6 +11,7 @@ class TestGoogleImagesEngine(SearxTestCase): dicto = defaultdict(dict) dicto['pageno'] = 1 dicto['safesearch'] = 1 + dicto['time_range'] = '' params = google_images.request(query, dicto) self.assertIn('url', params) self.assertIn(query, params['url']) diff --git a/tests/unit/engines/test_yahoo.py b/tests/unit/engines/test_yahoo.py index 11ef9db22..1226f92ab 100644 --- a/tests/unit/engines/test_yahoo.py +++ b/tests/unit/engines/test_yahoo.py @@ -28,6 +28,7 @@ class TestYahooEngine(SearxTestCase): query = 'test_query' dicto = defaultdict(dict) dicto['pageno'] = 1 + dicto['time_range'] = '' dicto['language'] = 'fr_FR' params = yahoo.request(query, dicto) self.assertIn('url', params) |