diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_standalone_searx.py | 4 | ||||
-rw-r--r-- | tests/unit/test_webapp.py | 2 | ||||
-rw-r--r-- | tests/unit/test_webutils.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/test_standalone_searx.py b/tests/unit/test_standalone_searx.py index a3d8b4d4f..6a450485f 100644 --- a/tests/unit/test_standalone_searx.py +++ b/tests/unit/test_standalone_searx.py @@ -57,7 +57,7 @@ class StandaloneSearx(SearxTestCase): 'suggestions': [], 'answers': [], 'paging': False, - 'results_number': 0, + 'number_of_results': 0, }, ) @@ -73,7 +73,7 @@ class StandaloneSearx(SearxTestCase): 'infoboxes': m_search.infoboxes, 'paging': m_search.paging, 'results': m_search.get_ordered_results(), - 'results_number': m_search.results_number(), + 'number_of_results': m_search.number_of_results, 'search': { 'lang': m_sq.lang, 'pageno': m_sq.pageno, diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 1c8f8a403..948b40aee 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -69,7 +69,7 @@ class ViewsTestCase(SearxTestCase): infoboxes=[], unresponsive_engines=set(), results=test_results, - results_number=lambda: 3, + number_of_results=3, results_length=lambda: len(test_results), get_timings=lambda: timings, redirect_url=None, diff --git a/tests/unit/test_webutils.py b/tests/unit/test_webutils.py index acf1aeeb7..244d2b180 100644 --- a/tests/unit/test_webutils.py +++ b/tests/unit/test_webutils.py @@ -64,7 +64,7 @@ class TestWebUtils(SearxTestCase): class TestUnicodeWriter(SearxTestCase): def setUp(self): - self.unicode_writer = webutils.UnicodeWriter(mock.MagicMock()) + self.unicode_writer = webutils.CSVWriter(mock.MagicMock()) def test_write_row(self): row = [1, 2, 3] |