mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[enh] test: load each engine to check for syntax errors
This commit is contained in:
13
tests/unit/test_engines.py
Normal file
13
tests/unit/test_engines.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user