summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_deviantart.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2019-12-21 21:15:09 +0100
committerAdam Tauber <asciimoo@gmail.com>2019-12-21 21:15:09 +0100
commit52ccaa7acc0eeeb452938a2a8758906430ece077 (patch)
tree6ba46008c9a88e3dfca224dec89fb6797fbfb733 /tests/unit/engines/test_deviantart.py
parentfc457569f757dd10ff55393f472ea9ed49a42374 (diff)
[mod] remove useless engine unit tests
These tests are not able to detect engine errors if the upstream site changes.
Diffstat (limited to 'tests/unit/engines/test_deviantart.py')
-rw-r--r--tests/unit/engines/test_deviantart.py24
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'])