mirror of
https://github.com/searxng/searxng.git
synced 2025-07-20 11:49:27 +02:00
[enh] test: load each engine to check for syntax errors
This commit is contained in:
parent
ec5adad851
commit
4fb3ed2c63
3 changed files with 23 additions and 12 deletions
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)
|
Loading…
Add table
Add a link
Reference in a new issue