diff options
author | rachmadaniHaryono <foreturiga@gmail.com> | 2019-05-18 18:58:05 +0800 |
---|---|---|
committer | rachmadaniHaryono <foreturiga@gmail.com> | 2019-05-18 18:58:05 +0800 |
commit | 9afc1b1e83670d2d921710559b790067dc211899 (patch) | |
tree | b8c5f15ccee45cb993084a8931d1ee3a0d3f2bcf /tests/unit/test_webapp.py | |
parent | 535fff109f5664b8a72710593cdbb5cb1e670546 (diff) | |
download | searxng-9afc1b1e83670d2d921710559b790067dc211899.tar.gz searxng-9afc1b1e83670d2d921710559b790067dc211899.zip |
new: dev: test for config api
Diffstat (limited to 'tests/unit/test_webapp.py')
-rw-r--r-- | tests/unit/test_webapp.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |