mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 15:59:21 +02:00
[mod] add documentation about searx.utils
This module is a toolbox for the engines. Is should be documented. In addition, searx/utils.py is checked by pylint.
This commit is contained in:
parent
f240a67bd7
commit
0eacc46ee3
3 changed files with 104 additions and 100 deletions
|
@ -128,7 +128,7 @@ class TestUtils(SearxTestCase):
|
|||
|
||||
class TestHTMLTextExtractor(SearxTestCase):
|
||||
def setUp(self):
|
||||
self.html_text_extractor = utils.HTMLTextExtractor()
|
||||
self.html_text_extractor = utils._HTMLTextExtractor()
|
||||
|
||||
def test__init__(self):
|
||||
self.assertEqual(self.html_text_extractor.result, [])
|
||||
|
@ -149,7 +149,7 @@ class TestHTMLTextExtractor(SearxTestCase):
|
|||
|
||||
def test_invalid_html(self):
|
||||
text = '<p><b>Lorem ipsum</i>dolor sit amet</p>'
|
||||
with self.assertRaises(utils.HTMLTextExtractorException):
|
||||
with self.assertRaises(utils._HTMLTextExtractorException):
|
||||
self.html_text_extractor.feed(text)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue