forked from Icycoide/searxng
healthcheck endpoint
This commit is contained in:
parent
ebf63f4caa
commit
13c355c4c4
2 changed files with 10 additions and 0 deletions
|
@ -191,6 +191,11 @@ class ViewsTestCase(SearxTestCase):
|
|||
self.assertEqual(result.status_code, 200)
|
||||
self.assertIn(b'<h1>About <a href="/">searxng</a></h1>', result.data)
|
||||
|
||||
def test_health(self):
|
||||
result = self.app.get('/healthz')
|
||||
self.assertEqual(result.status_code, 200)
|
||||
self.assertIn(b'OK', result.data)
|
||||
|
||||
def test_preferences(self):
|
||||
result = self.app.get('/preferences')
|
||||
self.assertEqual(result.status_code, 200)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue