[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>
This commit is contained in:
Markus Heiser 2025-02-28 11:58:45 +01:00 committed by Markus Heiser
parent 0c2076ca5b
commit 80f5fad16e
2 changed files with 40 additions and 7 deletions

View file

@ -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"})