summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_utils.py4
-rw-r--r--tests/unit/test_webapp.py6
2 files changed, 5 insertions, 5 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)
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py
index fd7c72e60..70ebd447b 100644
--- a/tests/unit/test_webapp.py
+++ b/tests/unit/test_webapp.py
@@ -174,9 +174,9 @@ class ViewsTestCase(SearxTestCase):
self.assertIn(b'<description>first test content</description>', result.data)
def test_about(self):
- result = self.app.get('/about')
+ result = self.app.get('/help/en/about')
self.assertEqual(result.status_code, 200)
- self.assertIn(b'<h1>About <a href="/">searxng</a></h1>', result.data)
+ self.assertIn(b'<h1>About SearXNG</h1>', result.data)
def test_health(self):
result = self.app.get('/healthz')
@@ -186,7 +186,7 @@ class ViewsTestCase(SearxTestCase):
def test_preferences(self):
result = self.app.get('/preferences')
self.assertEqual(result.status_code, 200)
- self.assertIn(b'<form method="post" action="/preferences" id="search_form">', result.data)
+ self.assertIn(b'<form method="post" action="/preferences" id="search_form" autocomplete="off">', result.data)
self.assertIn(b'<label class="col-sm-3 col-md-2" for="categories">Default categories</label>', result.data)
self.assertIn(b'<label class="col-sm-3 col-md-2" for="locale">Interface language</label>', result.data)