mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
WIP: use the package botdetection
This commit is contained in:
parent
ac430a9eaf
commit
e826a71c2b
17 changed files with 98 additions and 1261 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue