diff options
author | Igor Rzegocki <igor@rzegocki.pl> | 2021-10-02 17:00:37 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2021-10-29 10:18:17 +0000 |
commit | 13c355c4c45d79f84666c8306463969db804f83c (patch) | |
tree | 5892a3cad57683fa5b1e505a820726a9dc06c15b /tests | |
parent | ebf63f4caaa692574e5df88b3316f764066bfb10 (diff) | |
download | searxng-13c355c4c45d79f84666c8306463969db804f83c.tar.gz searxng-13c355c4c45d79f84666c8306463969db804f83c.zip |
healthcheck endpoint
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_webapp.py | 5 |
1 files changed, 5 insertions, 0 deletions
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'<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) |