Browse Source

[fix] result count tests

Adam Tauber 8 years ago
parent
commit
c75d0d1532
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tests/unit/test_webapp.py

+ 2
- 2
tests/unit/test_webapp.py View File

@@ -38,7 +38,7 @@ class ViewsTestCase(SearxTestCase):
38 38
                                                 suggestions=set(),
39 39
                                                 infoboxes=[],
40 40
                                                 results=self.test_results,
41
-                                                number_of_results=len(self.test_results),
41
+                                                results_number=lambda: 3,
42 42
                                                 results_length=lambda: len(self.test_results))
43 43
 
44 44
         webapp.Search.search = search_mock
@@ -96,7 +96,7 @@ class ViewsTestCase(SearxTestCase):
96 96
         )
97 97
 
98 98
         self.assertIn(
99
-            '<opensearch:totalResults>2</opensearch:totalResults>',
99
+            '<opensearch:totalResults>3</opensearch:totalResults>',
100 100
             result.data
101 101
         )
102 102