diff options
| author | Alexandre Flament <alex@al-f.net> | 2020-12-18 12:19:14 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2020-12-18 12:29:48 +0100 |
| commit | eda8934f1548ed228d00a0196b61d35585ea11bc (patch) | |
| tree | ac81fbe1a6154ad9338da92494bc9f9e3decdd75 /tests/unit/test_standalone_searx.py | |
| parent | 995ba2f40643bd01134902eca91cacf0bab1ebdc (diff) | |
[mod] searx.search.EngineRef: remove from_bang parameter
from_bang is True when the user query contains a bang.
In this case the category is also set to 'none'.
from_bang only usage was in searx.webadapter.parse_specific :
if from_bang is True, then the EngineRef category is ignored and force to 'none'.
This commit also removes the searx.webadapter.parse_sepecific function.
Diffstat (limited to 'tests/unit/test_standalone_searx.py')
| -rw-r--r-- | tests/unit/test_standalone_searx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_standalone_searx.py b/tests/unit/test_standalone_searx.py index d16bfe809..6cc230e6c 100644 --- a/tests/unit/test_standalone_searx.py +++ b/tests/unit/test_standalone_searx.py @@ -101,7 +101,7 @@ class StandaloneSearx(SearxTestCase): args = sas.parse_argument(['rain', ]) search_q = sas.get_search_query(args) self.assertTrue(search_q) - self.assertEqual(search_q, SearchQuery('rain', [EngineRef('engine1', 'general', False)], + self.assertEqual(search_q, SearchQuery('rain', [EngineRef('engine1', 'general')], 'all', 0, 1, None, None, None)) def test_no_parsed_url(self): |