summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2026-05-25 12:43:02 +0200
committerGitHub <noreply@github.com>2026-05-25 12:43:02 +0200
commitdd27fce3b7b5a14e4855474ead81447adbf73d7d (patch)
tree47d321c0da2b93e67d1bec0d44ac018864cffcb5 /tests
parentefc305b7f98399da2acc8596a496ad408c704d7b (diff)
[unbload] drop meaningless field ``number_of_results_xpath`` from results (#6130)
In the result-list, the ``number_of_results`` indicate the number of hits in the Index, they do not indicate how many results are in the answer. In the past, search engines such as google or ddg had an indication on the first page of a search term of how many hits there were for this term in total in their index. This info was added up in SearXNG and delivered under ``number_of_results``. Nowadays the search engines no longer indicate how many hits there are in the index and so this field in SearXNG is also superfluous. - https://github.com/searxng/searxng/issues/2457#issuecomment-2566181574 - https://github.com/searxng/searxng/issues/2987 - https://github.com/searxng/searxng/issues/5034 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_webapp.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py
index e66f46a9c..c4eabfd55 100644
--- a/tests/unit/test_webapp.py
+++ b/tests/unit/test_webapp.py
@@ -57,7 +57,6 @@ class ViewsTestCase(SearxTestCase): # pylint: disable=too-many-public-methods
infoboxes=[],
unresponsive_engines=set(),
results=test_results,
- number_of_results=3,
results_length=lambda: len(test_results),
get_timings=lambda: timings,
redirect_url=None,
@@ -161,8 +160,6 @@ class ViewsTestCase(SearxTestCase): # pylint: disable=too-many-public-methods
self.assertIn(b'<description>Search results for "test" - SearXNG</description>', result.data)
- self.assertIn(b'<opensearch:totalResults>3</opensearch:totalResults>', result.data)
-
self.assertIn(b'<title>First Test</title>', result.data)
self.assertIn(b'<link>http://first.test.xyz</link>', result.data)