summaryrefslogtreecommitdiff
path: root/searx/search
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-09-28 09:22:02 +0200
committerGitHub <noreply@github.com>2022-09-28 09:22:02 +0200
commita3148e51157e2ddbfbeb405b4d0b61aeafa405ba (patch)
tree6972d4b4aacb6736c06be3f327546a094f6f86c1 /searx/search
parent0e00af9c26338984ed0241fb3677550a6afd1b7d (diff)
parentba8959ad7c18ce4165d29b7a472d845bd96f4735 (diff)
Merge pull request #1814 from return42/fix-typos
[fix] typos / reported by @kianmeng in searx PR-3366
Diffstat (limited to 'searx/search')
-rw-r--r--searx/search/checker/__main__.py2
-rw-r--r--searx/search/checker/background.py2
-rw-r--r--searx/search/checker/impl.py4
-rw-r--r--searx/search/processors/online.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/searx/search/checker/__main__.py b/searx/search/checker/__main__.py
index 1311288f3..15fcb5ebd 100644
--- a/searx/search/checker/__main__.py
+++ b/searx/search/checker/__main__.py
@@ -70,7 +70,7 @@ def run(engine_name_list, verbose):
stderr.write(f'{BOLD_SEQ}Engine {name:30}{RESET_SEQ}Checking\n')
checker = searx.search.checker.Checker(processor)
checker.run()
- if checker.test_results.succesfull:
+ if checker.test_results.successful:
stdout.write(f'{BOLD_SEQ}Engine {name:30}{RESET_SEQ}{GREEN}OK{RESET_SEQ}\n')
if verbose:
stdout.write(f' {"found languages":15}: {" ".join(sorted(list(checker.test_results.languages)))}\n')
diff --git a/searx/search/checker/background.py b/searx/search/checker/background.py
index f8dfed4fa..3908245f8 100644
--- a/searx/search/checker/background.py
+++ b/searx/search/checker/background.py
@@ -107,7 +107,7 @@ def run():
logger.debug('Checking %s engine', name)
checker = Checker(processor)
checker.run()
- if checker.test_results.succesfull:
+ if checker.test_results.successful:
result['engines'][name] = {'success': True}
else:
result['engines'][name] = {'success': False, 'errors': checker.test_results.errors}
diff --git a/searx/search/checker/impl.py b/searx/search/checker/impl.py
index bc5cdf968..0705b6822 100644
--- a/searx/search/checker/impl.py
+++ b/searx/search/checker/impl.py
@@ -174,7 +174,7 @@ class TestResults:
self.languages.add(language)
@property
- def succesfull(self):
+ def successful(self):
return len(self.errors) == 0
def __iter__(self):
@@ -317,7 +317,7 @@ class ResultContainerTests:
self._record_error('No result')
def one_title_contains(self, title: str):
- """Check one of the title contains `title` (case insensitive comparaison)"""
+ """Check one of the title contains `title` (case insensitive comparison)"""
title = title.lower()
for result in self.result_container.get_ordered_results():
if title in result['title'].lower():
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py
index 17e9b6a96..be1ca57f3 100644
--- a/searx/search/processors/online.py
+++ b/searx/search/processors/online.py
@@ -75,7 +75,7 @@ class OnlineProcessor(EngineProcessor):
def _send_http_request(self, params):
# create dictionary which contain all
- # informations about the request
+ # information about the request
request_args = dict(
headers=params['headers'], cookies=params['cookies'], verify=params['verify'], auth=params['auth']
)