Merge branch 'searxng:master' into elasticsearch-custom-query

This commit is contained in:
frob
2024-11-29 02:32:55 +01:00
committed by GitHub
341 changed files with 29669 additions and 12534 deletions

View File

@@ -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 = []