forked from Icycoide/searxng
[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:
parent
14c7cc0e11
commit
995ba2f406
4 changed files with 30 additions and 35 deletions
|
@ -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"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue