From 80f5fad16e830a9fea9e73c0eaa5b36c27566d9c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 28 Feb 2025 11:58:45 +0100 Subject: [fix] add backward compatibility for the "enabled_plugins:" Before #4183 a builtin plugin was *defautlt_on* when it is listed in the "enabled_plugins" settings, this patch restores the previous behavior. Not part of this patch but just to mentioning in context of #4263: In the long term, we will abolish the "enabled_plugins:" setting and combine all options for the plugins in the "plugins:" setting, as is already planned in the PR #4282 Closes: https://github.com/searxng/searxng/issues/4263 Signed-off-by: Markus Heiser --- tests/unit/test_plugin_calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/test_plugin_calculator.py b/tests/unit/test_plugin_calculator.py index 2deba35b8..ec0258cab 100644 --- a/tests/unit/test_plugin_calculator.py +++ b/tests/unit/test_plugin_calculator.py @@ -26,7 +26,7 @@ class PluginCalculator(SearxTestCase): engines = {} self.storage = searx.plugins.PluginStorage() - self.storage.register(ModulePlugin(mod)) + self.storage.register(ModulePlugin(mod, "searx.plugins.calculator")) self.storage.init(self.app) self.pref = searx.preferences.Preferences(["simple"], ["general"], engines, self.storage) self.pref.parse_dict({"locale": "en"}) -- cgit v1.2.3