summaryrefslogtreecommitdiff
path: root/tests/unit/engines
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/engines')
-rw-r--r--tests/unit/engines/__init__.py2
-rw-r--r--tests/unit/engines/test_command.py21
-rw-r--r--tests/unit/engines/test_xpath.py5
3 files changed, 7 insertions, 21 deletions
diff --git a/tests/unit/engines/__init__.py b/tests/unit/engines/__init__.py
index 9ed59c825..f78f6acdd 100644
--- a/tests/unit/engines/__init__.py
+++ b/tests/unit/engines/__init__.py
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
-# pylint: disable=missing-module-docstring
+# pylint: disable=missing-module-docstring,disable=missing-class-docstring,invalid-name
diff --git a/tests/unit/engines/test_command.py b/tests/unit/engines/test_command.py
index 2123ab168..e9a88ffe1 100644
--- a/tests/unit/engines/test_command.py
+++ b/tests/unit/engines/test_command.py
@@ -1,27 +1,12 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
-# pylint: disable=missing-module-docstring
-
-'''
-searx is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-searx is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
-
-You should have received a copy of the GNU Affero General Public License
-along with searx. If not, see < http://www.gnu.org/licenses/ >.
-
-'''
+# pylint: disable=missing-module-docstring,disable=missing-class-docstring,invalid-name
from searx.engines import command as command_engine
from tests import SearxTestCase
-class TestCommandEngine(SearxTestCase): # pylint: disable=missing-class-docstring
+class TestCommandEngine(SearxTestCase):
+
def test_basic_seq_command_engine(self):
ls_engine = command_engine
ls_engine.command = ['seq', '{{QUERY}}']
diff --git a/tests/unit/engines/test_xpath.py b/tests/unit/engines/test_xpath.py
index e80ef96e2..81af052b9 100644
--- a/tests/unit/engines/test_xpath.py
+++ b/tests/unit/engines/test_xpath.py
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
-# pylint: disable=missing-module-docstring
+# pylint: disable=missing-module-docstring,disable=missing-class-docstring,invalid-name
from collections import defaultdict
import mock
@@ -12,7 +12,7 @@ from tests import SearxTestCase
logger = logger.getChild('engines')
-class TestXpathEngine(SearxTestCase): # pylint: disable=missing-class-docstring
+class TestXpathEngine(SearxTestCase):
html = """
<div>
<div class="search_result">
@@ -29,6 +29,7 @@ class TestXpathEngine(SearxTestCase): # pylint: disable=missing-class-docstring
"""
def setUp(self):
+ super().setUp()
xpath.logger = logger.getChild('test_xpath')
def test_request(self):