summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_plugins.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/unit/test_plugins.py b/tests/unit/test_plugins.py
index 0d555fdc0..90436266e 100644
--- a/tests/unit/test_plugins.py
+++ b/tests/unit/test_plugins.py
@@ -1,6 +1,11 @@
# -*- coding: utf-8 -*-
-from searx import plugins
+from searx import (
+ plugins,
+ limiter,
+ botdetection,
+)
+
from mock import Mock
from tests import SearxTestCase
@@ -46,6 +51,8 @@ class SelfIPTest(SearxTestCase):
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)