diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-03-13 23:12:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-13 23:12:46 +0100 |
| commit | cd92a7eacdd6b4c333e57111e1503b8455628067 (patch) | |
| tree | a2f72a42d2024c1f612bee5f9058920c643e6878 /tests/unit/test_webapp.py | |
| parent | e847313007aa3a61c26acda122bb183df1df76a7 (diff) | |
| parent | 1157462ff9fc08504297e259356ccbefb339965f (diff) | |
Merge pull request #930 from return42/merge-user-doc2
Integrate the user documentation into the application
Diffstat (limited to 'tests/unit/test_webapp.py')
| -rw-r--r-- | tests/unit/test_webapp.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 872b8d014..6385d187d 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -177,10 +177,14 @@ class ViewsTestCase(SearxTestCase): self.assertIn(b'<description>first test content</description>', result.data) - def test_about(self): - result = self.app.get('/help/en/about') + def test_redirect_about(self): + result = self.app.get('/about') + self.assertEqual(result.status_code, 302) + + def test_info_page(self): + result = self.app.get('/info/en/search-syntax') self.assertEqual(result.status_code, 200) - self.assertIn(b'<h1>About SearXNG</h1>', result.data) + self.assertIn(b'<h1>Search syntax</h1>', result.data) def test_health(self): result = self.app.get('/healthz') |