new: dev: test for config api

This commit is contained in:
rachmadaniHaryono 2019-05-18 18:58:05 +08:00
parent 535fff109f
commit 9afc1b1e83

View file

@ -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)