summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/engines/test_xpath.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/engines/test_xpath.py b/tests/unit/engines/test_xpath.py
index 380dd1d6c..e80ef96e2 100644
--- a/tests/unit/engines/test_xpath.py
+++ b/tests/unit/engines/test_xpath.py
@@ -3,9 +3,14 @@
from collections import defaultdict
import mock
+
from searx.engines import xpath
+from searx import logger
+
from tests import SearxTestCase
+logger = logger.getChild('engines')
+
class TestXpathEngine(SearxTestCase): # pylint: disable=missing-class-docstring
html = """
@@ -23,6 +28,9 @@ class TestXpathEngine(SearxTestCase): # pylint: disable=missing-class-docstring
</div>
"""
+ def setUp(self):
+ xpath.logger = logger.getChild('test_xpath')
+
def test_request(self):
xpath.search_url = 'https://url.com/{query}'
xpath.categories = []