From 13c355c4c45d79f84666c8306463969db804f83c Mon Sep 17 00:00:00 2001 From: Igor Rzegocki Date: Sat, 2 Oct 2021 17:00:37 +0200 Subject: healthcheck endpoint --- tests/unit/test_webapp.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/unit/test_webapp.py') diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index ff58aa1e9..cfaa4fb90 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -191,6 +191,11 @@ class ViewsTestCase(SearxTestCase): self.assertEqual(result.status_code, 200) self.assertIn(b'

About searxng

', 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) -- cgit v1.2.3