From c75d0d15322b4bac37b513256b363c0b5a86d773 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 16 Jul 2016 21:53:42 +0200 Subject: [PATCH] [fix] result count tests --- tests/unit/test_webapp.py | 4 ++-- 1 file 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( - '2', + '3', result.data )