Browse Source

new: dev: test for config api

rachmadaniHaryono 6 years ago
parent
commit
9afc1b1e83
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tests/unit/test_webapp.py

+ 6 - 0
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)