diff options
| author | Mathieu Brunot <mathieu.brunot@monogramm.io> | 2019-12-24 21:38:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-24 21:38:07 +0100 |
| commit | 359c18f9e633fe4cf1062bb2e7507840065e6ca5 (patch) | |
| tree | a0babfcc9471b69a20358fa95f47e22b469af7f0 /tests/unit/engines/test_deviantart.py | |
| parent | 088752959e5cb635b55cb74e8d9d90e5062e0a7f (diff) | |
| parent | a52a638ba88466c587fd8afa744434711b1e4822 (diff) | |
Merge branch 'master' into docker/opencontainers
Diffstat (limited to 'tests/unit/engines/test_deviantart.py')
| -rw-r--r-- | tests/unit/engines/test_deviantart.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/unit/engines/test_deviantart.py b/tests/unit/engines/test_deviantart.py deleted file mode 100644 index a31151037..000000000 --- a/tests/unit/engines/test_deviantart.py +++ /dev/null @@ -1,24 +0,0 @@ -from collections import defaultdict -import mock -from searx.engines import deviantart -from searx.testing import SearxTestCase - - -class TestDeviantartEngine(SearxTestCase): - - def test_request(self): - dicto = defaultdict(dict) - query = 'test_query' - dicto['pageno'] = 0 - dicto['time_range'] = '' - params = deviantart.request(query, dicto) - self.assertTrue('url' in params) - self.assertTrue(query in params['url']) - self.assertTrue('deviantart.com' in params['url']) - - def test_no_url_in_request_year_time_range(self): - dicto = defaultdict(dict) - query = 'test_query' - dicto['time_range'] = 'year' - params = deviantart.request(query, dicto) - self.assertEqual({}, params['url']) |