summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2020-08-28 12:12:32 +0200
committerDalf <alex@al-f.net>2020-08-28 12:12:32 +0200
commit4fb3ed2c6335b68f6b28ebc68d5d22f2fd621648 (patch)
treed21fa1ac26e0c3100f5ac02362f723aca0dd4223 /tests/unit
parentec5adad851720be245a36018649011e7d0ec8e12 (diff)
downloadsearxng-4fb3ed2c6335b68f6b28ebc68d5d22f2fd621648.tar.gz
searxng-4fb3ed2c6335b68f6b28ebc68d5d22f2fd621648.zip
[enh] test: load each engine to check for syntax errors
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_engines.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/test_engines.py b/tests/unit/test_engines.py
new file mode 100644
index 000000000..3f5f8dc80
--- /dev/null
+++ b/tests/unit/test_engines.py
@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+
+import unittest2 as unittest
+from unittest2.util import strclass
+from searx.engines import load_engine
+from searx import settings
+
+
+class TestEngine(unittest.TestCase):
+
+ def test_engines(self):
+ for engine_data in settings['engines']:
+ load_engine(engine_data)