WIP: use the package botdetection

This commit is contained in:
Alexandre Flament 2024-05-05 17:44:30 +00:00
parent ac430a9eaf
commit e826a71c2b
17 changed files with 98 additions and 1261 deletions

View file

@ -3,11 +3,7 @@
from mock import Mock
from searx import (
plugins,
limiter,
botdetection,
)
from searx import plugins
from tests import SearxTestCase
@ -53,8 +49,6 @@ class SelfIPTest(SearxTestCase): # pylint: disable=missing-class-docstring
plugin = plugins.load_and_initialize_plugin('searx.plugins.self_info', False, (None, {}))
store = plugins.PluginStore()
store.register(plugin)
cfg = limiter.get_cfg()
botdetection.init(cfg, None)
self.assertTrue(len(store.plugins) == 1)