diff --git a/tests/unit/engines/__init__.py b/tests/unit/engines/__init__.py
deleted file mode 100644
index e69de29bb..000000000
diff --git a/tests/unit/engines/pubmed.py b/tests/unit/engines/pubmed.py
deleted file mode 100644
index 370efe067..000000000
--- a/tests/unit/engines/pubmed.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# -*- coding: utf-8 -*-
-from collections import defaultdict
-import mock
-from searx.engines import pubmed
-from searx.testing import SearxTestCase
-
-
-class TestPubmedEngine(SearxTestCase):
-
- def test_request(self):
- query = 'test_query'
- dicto = defaultdict(dict)
- dicto['pageno'] = 1
- params = pubmed.request(query, dicto)
- self.assertIn('url', params)
- self.assertIn('eutils.ncbi.nlm.nih.gov/', params['url'])
- self.assertIn('term', params['url'])
-
- def test_response(self):
- self.assertRaises(AttributeError, pubmed.response, None)
- self.assertRaises(AttributeError, pubmed.response, [])
- self.assertRaises(AttributeError, pubmed.response, '')
- self.assertRaises(AttributeError, pubmed.response, '[]')
-
- response = mock.Mock(text='
- - | - - - Torrent name | Age | Size | Seeds | Peers | Health | |
---|---|---|---|---|---|---|
Narcos season 2 Full Version | 20 hours | 681.3 MB | 28 | 654 | ||
Narcos season 2 Trusted Source | 12 hours | 787.1 MB | 64 | 220 | ||
Full Narcos season 2 Download Usenet | 24 hours | 775.5 MB | 60 | 236 | ||
Narcos season 2 2014 - DIRECT STREAMING Movies | 17 hours | 654.1 MB | 2 | 391 | ||
Narcos season 2 2014 Movies | 20 hours | 754.5 MB | 21 | 919 |
- - | - - - Torrent name | Age | Size | Seeds | Peers | Health |
---|---|---|---|---|---|
Narcos Season 2 Complete 720p WebRip EN-SUB x264-[MULVAcoded] S02 | 19 hours | 4.39 GB | 715 | 183 | |
Narcos - Season 2 - 720p WEBRiP - x265 HEVC - ShAaNiG | 1 day | 2.48 GB | 861 | 332 |
test | -test | -test | -test | -test | -test | -test | -test | -
---|---|---|---|---|---|---|---|
date | -testcategory テスト | -- torrentname テスト - | -1MB | -- - 29 - - | -- - 211 - - | -- - 168 - - | -user | -
This should be the content.
-This should be the content.
-This should be the content.
-
-
-
- The Big Bang Theory
-
- 4 hours ago
-
-
-
-
- Files: 1 Size: 2.9 GB Downloads: 1 Updated: 4 hours ago
-
-
- magnet-link
-
-
-
- |
This is the content
-VERSION INTEGRALE DE LA CONFERENCE DE PRESSE DU GENERAL DE GAULLE . \ - - PA le Pr\\u00e9sident DE GAULLE : il ouvre les bras et s'assied. DP journalis...<\\/p>\\n\ - <\\/div>\\n<\\/div>\\n" - } - """ - response = mock.Mock(text=json) - results = ina.response(response) - self.assertEqual(type(results), list) - self.assertEqual(len(results), 1) - self.assertEqual(results[0]['title'], u'Conf\xe9rence de presse du G\xe9n\xe9ral de Gaulle') - self.assertEqual(results[0]['url'], - 'https://www.ina.fr/video/CAF89035682/conference-de-presse-du-general-de-gaulle-video.html') - self.assertEqual(results[0]['content'], - u"VERSION INTEGRALE DE LA CONFERENCE DE PRESSE DU GENERAL DE GAULLE ." - u" - PA le Pr\u00e9sident DE GAULLE : il ouvre les bras et s'assied. DP journalis...") diff --git a/tests/unit/engines/test_kickass.py b/tests/unit/engines/test_kickass.py deleted file mode 100644 index 3a75c6697..000000000 --- a/tests/unit/engines/test_kickass.py +++ /dev/null @@ -1,397 +0,0 @@ -# -*- coding: utf-8 -*- -from collections import defaultdict -import mock -from searx.engines import kickass -from searx.testing import SearxTestCase - - -class TestKickassEngine(SearxTestCase): - - def test_request(self): - query = 'test_query' - dicto = defaultdict(dict) - dicto['pageno'] = 1 - params = kickass.request(query, dicto) - self.assertIn('url', params) - self.assertIn(query, params['url']) - self.assertIn('kickass.cd', params['url']) - self.assertFalse(params['verify']) - - def test_response(self): - self.assertRaises(AttributeError, kickass.response, None) - self.assertRaises(AttributeError, kickass.response, []) - self.assertRaises(AttributeError, kickass.response, '') - self.assertRaises(AttributeError, kickass.response, '[]') - - response = mock.Mock(text='') - self.assertEqual(kickass.response(response), []) - - html = """ -
torrent name | -- size - | -- files - | -- age - | -- seed - | -- leech - | -
---|---|---|---|---|---|
- - | -449 bytes | -4 | -2 years | -10 | -1 | -
torrent name | -- size - | -- files - | -- age - | -- seed - | -- leech - | -
---|
torrent name | -- size - | -- files - | -- age - | -- seed - | -- leech - | -
---|---|---|---|---|---|
- - | -1 KiB | -4 | -2 years | -10 | -1 | -
- - | -1 MiB | -4 | -2 years | -9 | -1 | -
- - | -1 GiB | -4 | -2 years | -8 | -1 | -
- - | -1 TiB | -4 | -2 years | -7 | -1 | -
- - | -z bytes | -r | -2 years | -a | -t | -
- Category
- |
-
- Name
- |
- - - - | -
- Link
- |
-
-
- Size
- |
-
-
- Date
- |
- - - - | -- - - | -- - - | -
---|---|---|---|---|---|---|---|---|
- - - - | -- Sample title 1 - | -- - - | -723.7 MiB | -2017-08-21 11:24 | -1 | -3 | -12 | -|
- - - - | -- Sample title 2 - | -- - | -8.2 GiB | -2017-04-08 01:40 | -10 | -1 | -206 | -
- - (Anime) - |
- - - - - - - - - - - - - - This is the content and should be OK - - | -13 | -334 | -
- - (Anime) - |
- - - - - - - - - - - This is the content and should be OK - - | -13 | -334 | -
- - (Anime) - |
- - - - - - - - - - - - - - This is the content and should be OK - - | -s | -d | -
Title | -1 year | -1 KB | -10 | -20 | -- |
- - | -- - - - - Koyomimonogatari - - | -Details | -
- Authorized: Yes - Submitter: Ohys | - Size: 10.5MB | - Date: 2016-03-26 16:41 UTC | - Comment: sample comment - | -- S: 53 - L: 18 - C: 0 - ID: 975700 - | -|
- - | -- - Owarimonogatari - - | -Details | -
- Submitter: Ohys | - Size: 932.84EB | - Date: QWERTY-03-26 16:41 UTC - | -- S: 0 - | -
- This is the content étude à€ - - - - http://link.in.tweet - - - - - - - pic.twitter.com/rbFsfeE0l3 - -
- - -- This is the content étude à€ - - - - http://link.in.tweet - - - - - - - pic.twitter.com/rbFsfeE0l3 - -
- - -- This should be the content.
-N | -Language | -Language (local) | -Wiki | -Articles | -
---|---|---|---|---|
2 | -Swedish | -Svenska | -sv | -3000000 | -
3 | -Cebuano | -Sinugboanong Binisaya | -ceb | -3000000 | -
N | -Language | -Language (local) | -Wiki | -Articles | -
---|---|---|---|---|
2 | -Norwegian (Bokmål) | -Norsk (Bokmål) | -no | -100000 | -
This is the content -
-This is the second content
-This is the suggestion - | -
This is the content -
-