mirror of
https://github.com/searxng/searxng.git
synced 2026-07-24 08:51:24 +00:00
Merge branch 'searxng:master' into elasticsearch-custom-query
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user