diff options
author | Alexandre Flament <alex@al-f.net> | 2022-01-29 11:16:28 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-01-29 22:49:42 +0100 |
commit | 0eacc46ee38a6097e26fbff88541cfbbbb03564b (patch) | |
tree | 82c0e87d5a81b210d1edb9f8dbdb3348f240a6f3 /tests/unit/test_utils.py | |
parent | f240a67bd7df88f38ebadf93dcccaa0f557bddaf (diff) | |
download | searxng-0eacc46ee38a6097e26fbff88541cfbbbb03564b.tar.gz searxng-0eacc46ee38a6097e26fbff88541cfbbbb03564b.zip |
[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.
Diffstat (limited to 'tests/unit/test_utils.py')
-rw-r--r-- | tests/unit/test_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 3b79797e3..8ac7db479 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 = '<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) |