From 9afc1b1e83670d2d921710559b790067dc211899 Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Sat, 18 May 2019 18:58:05 +0800 Subject: [PATCH] new: dev: test for config api --- tests/unit/test_webapp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index e6739bfe5..fae1755d6 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -157,3 +157,9 @@ class ViewsTestCase(SearxTestCase): def test_favicon(self): result = self.app.get('/favicon.ico') self.assertEqual(result.status_code, 200) + + def test_config(self): + result = self.app.get('/config') + self.assertEqual(result.status_code, 200) + json_result = result.get_json() + self.assertTrue(json_result)