summaryrefslogtreecommitdiff
path: root/searx/search/processors/abstract.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-01-13 15:46:48 +0100
committerGitHub <noreply@github.com>2021-01-13 15:46:48 +0100
commit484dc99580a4cfdbba022209cbe896cd69b3e8b2 (patch)
tree0dc84bbe549fac71ead7ee4e4fafeb0d3f3021c2 /searx/search/processors/abstract.py
parentf7e11fd7222363a72a8fa33cf69190f64a3880bd (diff)
parent912c7e975c3943db798d748fa48d460467b66d30 (diff)
Merge pull request #2419 from dalf/checker
[enh] add checker
Diffstat (limited to 'searx/search/processors/abstract.py')
-rw-r--r--searx/search/processors/abstract.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/searx/search/processors/abstract.py b/searx/search/processors/abstract.py
index cf3fd7236..eb8d296ec 100644
--- a/searx/search/processors/abstract.py
+++ b/searx/search/processors/abstract.py
@@ -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 {}