From 0eacc46ee38a6097e26fbff88541cfbbbb03564b Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 29 Jan 2022 11:16:28 +0100 Subject: [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. --- tests/unit/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 3b79797e..8ac7db47 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -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 = '

Lorem ipsumdolor sit amet

' - with self.assertRaises(utils.HTMLTextExtractorException): + with self.assertRaises(utils._HTMLTextExtractorException): self.html_text_extractor.feed(text) -- cgit v1.2.3