[mod] info page: Privacy Policy

Initial creation of an info page on the topic "Privacy Policy".

[1] https://github.com/searxng/searxng/issues/1285#issuecomment-1431497644

Suggested-by: @nicfab [1]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2023-02-16 16:56:52 +01:00
parent 3ba0587666
commit 93ac1faab4
5 changed files with 228 additions and 0 deletions

View file

@ -189,6 +189,10 @@ class ViewsTestCase(SearxTestCase):
self.assertEqual(result.status_code, 200)
self.assertIn(b'<h1>Search syntax</h1>', result.data)
result = self.app.get('/info/en/privacy-policy')
self.assertEqual(result.status_code, 200)
self.assertIn(b'<h1>Privacy Policy</h1>', result.data)
def test_health(self):
result = self.app.get('/healthz')
self.assertEqual(result.status_code, 200)