diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-02-28 11:58:45 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-03-01 18:02:31 +0100 |
| commit | 80f5fad16e830a9fea9e73c0eaa5b36c27566d9c (patch) | |
| tree | 54a9f45dd6343c06c2459cd775efce7f81ba2a4c /tests/unit/test_plugin_calculator.py | |
| parent | 0c2076ca5bff98020a10cb622998db4e16864079 (diff) | |
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'tests/unit/test_plugin_calculator.py')
| -rw-r--r-- | tests/unit/test_plugin_calculator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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"}) |