[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:
Alexandre Flament 2022-01-29 11:16:28 +01:00
parent f240a67bd7
commit 0eacc46ee3
3 changed files with 104 additions and 100 deletions

View file

@ -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)