[mod] searx.search.SearchQuery: remove categories parameter

The categories parameter is useless in the constructor:
it is always the categories from the EngineRef.

The categories becomes a property.
This commit is contained in:
Alexandre Flament 2020-12-17 13:51:57 +01:00
parent 14c7cc0e11
commit 995ba2f406
4 changed files with 30 additions and 35 deletions

View file

@ -102,7 +102,7 @@ class StandaloneSearx(SearxTestCase):
search_q = sas.get_search_query(args)
self.assertTrue(search_q)
self.assertEqual(search_q, SearchQuery('rain', [EngineRef('engine1', 'general', False)],
['general'], 'all', 0, 1, None, None, None))
'all', 0, 1, None, None, None))
def test_no_parsed_url(self):
"""test no_parsed_url func"""