forked from Ponysearch/Ponysearch
[fix] result count tests
This commit is contained in:
parent
5b5478bbd9
commit
c75d0d1532
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ class ViewsTestCase(SearxTestCase):
|
||||||
suggestions=set(),
|
suggestions=set(),
|
||||||
infoboxes=[],
|
infoboxes=[],
|
||||||
results=self.test_results,
|
results=self.test_results,
|
||||||
number_of_results=len(self.test_results),
|
results_number=lambda: 3,
|
||||||
results_length=lambda: len(self.test_results))
|
results_length=lambda: len(self.test_results))
|
||||||
|
|
||||||
webapp.Search.search = search_mock
|
webapp.Search.search = search_mock
|
||||||
|
@ -96,7 +96,7 @@ class ViewsTestCase(SearxTestCase):
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
'<opensearch:totalResults>2</opensearch:totalResults>',
|
'<opensearch:totalResults>3</opensearch:totalResults>',
|
||||||
result.data
|
result.data
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue