mirror of
https://github.com/searxng/searxng.git
synced 2025-08-30 23:19:11 +02:00
[enh] add checker
This commit is contained in:
parent
f7e11fd722
commit
8cbc9f2d58
11 changed files with 539 additions and 2 deletions
|
@ -37,3 +37,15 @@ class EngineProcessor:
|
|||
@abstractmethod
|
||||
def search(self, query, params, result_container, start_time, timeout_limit):
|
||||
pass
|
||||
|
||||
def get_tests(self):
|
||||
tests = getattr(self.engine, 'tests', None)
|
||||
if tests is None:
|
||||
tests = getattr(self.engine, 'additional_tests', {})
|
||||
tests.update(self.get_default_tests())
|
||||
return tests
|
||||
else:
|
||||
return tests
|
||||
|
||||
def get_default_tests(self):
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue