summaryrefslogtreecommitdiff
path: root/searx/search/processors/online_currency.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/online_currency.py
parentf7e11fd7222363a72a8fa33cf69190f64a3880bd (diff)
parent912c7e975c3943db798d748fa48d460467b66d30 (diff)
Merge pull request #2419 from dalf/checker
[enh] add checker
Diffstat (limited to 'searx/search/processors/online_currency.py')
-rw-r--r--searx/search/processors/online_currency.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/searx/search/processors/online_currency.py b/searx/search/processors/online_currency.py
index f0e919c03..132c10594 100644
--- a/searx/search/processors/online_currency.py
+++ b/searx/search/processors/online_currency.py
@@ -55,3 +55,13 @@ class OnlineCurrencyProcessor(OnlineProcessor):
params['from_name'] = iso4217_to_name(from_currency, 'en')
params['to_name'] = iso4217_to_name(to_currency, 'en')
return params
+
+ def get_default_tests(self):
+ tests = {}
+
+ tests['currency'] = {
+ 'matrix': {'query': '1337 usd in rmb'},
+ 'result_container': ['has_answer'],
+ }
+
+ return tests