mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
[fix] result count tests
This commit is contained in:
@@ -38,7 +38,7 @@ class ViewsTestCase(SearxTestCase):
|
||||
suggestions=set(),
|
||||
infoboxes=[],
|
||||
results=self.test_results,
|
||||
number_of_results=len(self.test_results),
|
||||
results_number=lambda: 3,
|
||||
results_length=lambda: len(self.test_results))
|
||||
|
||||
webapp.Search.search = search_mock
|
||||
@@ -96,7 +96,7 @@ class ViewsTestCase(SearxTestCase):
|
||||
)
|
||||
|
||||
self.assertIn(
|
||||
'<opensearch:totalResults>2</opensearch:totalResults>',
|
||||
'<opensearch:totalResults>3</opensearch:totalResults>',
|
||||
result.data
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user