summaryrefslogtreecommitdiff
path: root/tests/unit/test_search.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_search.py')
-rw-r--r--tests/unit/test_search.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/test_search.py b/tests/unit/test_search.py
index b85c90c68..a60089aef 100644
--- a/tests/unit/test_search.py
+++ b/tests/unit/test_search.py
@@ -2,6 +2,7 @@
# pylint: disable=missing-module-docstring, invalid-name
from copy import copy
+import logging
import searx.search
from searx.search import SearchQuery, EngineRef
@@ -46,8 +47,13 @@ class SearchQueryTestCase(SearxTestCase): # pylint: disable=missing-class-docst
class SearchTestCase(SearxTestCase): # pylint: disable=missing-class-docstring
def setUp(self):
+ 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)
+
self.app = webapp.app
@classmethod