summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-11-02 11:19:53 +0100
committerAlexandre Flament <alex@al-f.net>2020-11-14 14:11:02 +0100
commit3038052c79ed16d4e32be9680b426b7a765f4f01 (patch)
tree6550ad32ecd9e2f47b5562a5561b39f61c7b8807 /tests
parent6489a560ea9cbd8087f9872a8494f6d8ec76bf75 (diff)
downloadsearxng-3038052c79ed16d4e32be9680b426b7a765f4f01.tar.gz
searxng-3038052c79ed16d4e32be9680b426b7a765f4f01.zip
[mod] remove unused import
use from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url # NOQA so it is possible to easily remove all unused import using autoflake: autoflake --in-place --recursive --remove-all-unused-imports searx tests
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/engines/test_command.py1
-rw-r--r--tests/unit/test_webadapter.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/engines/test_command.py b/tests/unit/engines/test_command.py
index 0aa1c6201..8f88b617e 100644
--- a/tests/unit/engines/test_command.py
+++ b/tests/unit/engines/test_command.py
@@ -14,7 +14,6 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
'''
-from sys import version_info
from searx.engines import command as command_engine
from searx.testing import SearxTestCase
diff --git a/tests/unit/test_webadapter.py b/tests/unit/test_webadapter.py
index 7806353d3..f620cf300 100644
--- a/tests/unit/test_webadapter.py
+++ b/tests/unit/test_webadapter.py
@@ -5,7 +5,7 @@ from searx.preferences import Preferences
from searx.engines import engines
import searx.search
-from searx.search import EngineRef, SearchQuery
+from searx.search import EngineRef
from searx.webadapter import validate_engineref_list