summaryrefslogtreecommitdiff
path: root/tests/unit/test_webapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_webapp.py')
-rw-r--r--tests/unit/test_webapp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py
index 868645e17..7c6e1ef82 100644
--- a/tests/unit/test_webapp.py
+++ b/tests/unit/test_webapp.py
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# pylint: disable=missing-module-docstring
+import logging
import json
from urllib.parse import ParseResult
from mock import Mock
@@ -20,8 +21,13 @@ class ViewsTestCase(SearxTestCase): # pylint: disable=missing-class-docstring,
self.setattr4test(searx.search.processors, 'initialize_processor', dummy)
+ log = logging.getLogger("searx")
+ log_lev = log.level
+ log.setLevel(logging.ERROR)
from searx import webapp # pylint: disable=import-outside-toplevel
+ log.setLevel(log_lev)
+
webapp.app.config['TESTING'] = True # to get better error messages
self.app = webapp.app.test_client()