diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-08-31 14:29:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 14:29:52 +0200 |
| commit | 6f9aa0e2581815189db06d3e7815f1e11b9a4f15 (patch) | |
| tree | 530576a73b691c31f5a7e291d2b9c24fe4076421 /tests | |
| parent | 6ded6e7a9a011e6a9f379e2088c45bf2e63b2605 (diff) | |
| parent | 4fb3ed2c6335b68f6b28ebc68d5d22f2fd621648 (diff) | |
Merge pull request #2160 from dalf/test_load_engine
[enh] test: load each engine to check for syntax errors
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_engines.py | 13 |
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) |