[enh] introduce /help route

Translation will be implemented in the future.
For now the "en" in /help/en/<pagename> is hardcoded.
This commit is contained in:
Martin Fischer 2022-01-31 11:24:45 +01:00
parent b93711b45d
commit fb9eedbf40
7 changed files with 45 additions and 20 deletions

View file

@ -174,7 +174,7 @@ 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 SearXNG</h1>', result.data)