From 8f8343dc0d78bb57215afc3e99fd9000fce6e0cf Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 11 Sep 2025 19:10:27 +0200 Subject: [mod] addition of various type hints / engine processors Continuation of #5147 .. typification of the engine processors. BTW: - removed obsolete engine property https_support - fixed & improved currency_convert - engine instances can now implement a engine.setup method [#5147] https://github.com/searxng/searxng/pull/5147 Signed-off-by: Markus Heiser --- tests/unit/processors/test_online.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit/processors') diff --git a/tests/unit/processors/test_online.py b/tests/unit/processors/test_online.py index 0a73fd4cc..b8758083b 100644 --- a/tests/unit/processors/test_online.py +++ b/tests/unit/processors/test_online.py @@ -20,7 +20,7 @@ class TestOnlineProcessor(SearxTestCase): def test_get_params_default_params(self): engine = engines.engines[TEST_ENGINE_NAME] - online_processor = online.OnlineProcessor(engine, TEST_ENGINE_NAME) + online_processor = online.OnlineProcessor(engine) search_query = SearchQuery('test', [EngineRef(TEST_ENGINE_NAME, 'general')], 'all', 0, 1, None, None, None) params = self._get_params(online_processor, search_query, 'general') self.assertIn('method', params) @@ -32,7 +32,7 @@ class TestOnlineProcessor(SearxTestCase): def test_get_params_useragent(self): engine = engines.engines[TEST_ENGINE_NAME] - online_processor = online.OnlineProcessor(engine, TEST_ENGINE_NAME) + online_processor = online.OnlineProcessor(engine) search_query = SearchQuery('test', [EngineRef(TEST_ENGINE_NAME, 'general')], 'all', 0, 1, None, None, None) params = self._get_params(online_processor, search_query, 'general') self.assertIn('User-Agent', params['headers']) -- cgit v1.2.3