Merge pull request #848 from not-my-profile/help-route

Introduce `/help` route
This commit is contained in:
Alexandre Flament 2022-02-05 08:52:19 +01:00 committed by GitHub
commit bf987bb608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 94 additions and 36 deletions

View file

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