summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-07-16 21:53:42 +0200
committerAdam Tauber <asciimoo@gmail.com>2016-07-16 21:53:42 +0200
commitc75d0d15322b4bac37b513256b363c0b5a86d773 (patch)
tree308947f7120f80175b9ae51e259729072fd45b6b /tests
parent5b5478bbd93ec98d3d60adb12874fa50a1f4d3d4 (diff)
downloadsearxng-c75d0d15322b4bac37b513256b363c0b5a86d773.tar.gz
searxng-c75d0d15322b4bac37b513256b363c0b5a86d773.zip
[fix] result count tests
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_webapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py
index cbf0da471..1762d66b6 100644
--- a/tests/unit/test_webapp.py
+++ b/tests/unit/test_webapp.py
@@ -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
)