logo

searx

My custom branche(s) on searx, a meta-search engine
commit: c75d0d15322b4bac37b513256b363c0b5a86d773
parent: 5b5478bbd93ec98d3d60adb12874fa50a1f4d3d4
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sat, 16 Jul 2016 21:53:42 +0200

[fix] result count tests

Diffstat:

Mtests/unit/test_webapp.py4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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 )