Change self plugin to self_info + change self_info description

This commit is contained in:
Luc Didry 2015-06-15 13:36:38 +02:00
parent 41fd748cdf
commit 0fe362bacf
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ from searx import logger
logger = logger.getChild('plugins')
from searx.plugins import (https_rewrite,
self,
self_info,
search_on_category_select)
required_attrs = (('name', str),
@ -71,5 +71,5 @@ class PluginStore():
plugins = PluginStore()
plugins.register(https_rewrite)
plugins.register(self)
plugins.register(self_info)
plugins.register(search_on_category_select)

View File

@ -17,7 +17,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
from flask.ext.babel import gettext
import re
name = "Self Informations"
description = gettext('Correct Duckduckgo instant answers with your own informations (IP and User Agent)')
description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')
default_on = True

View File

@ -38,7 +38,7 @@ class SelfIPTest(SearxTestCase):
def test_PluginStore_init(self):
store = plugins.PluginStore()
store.register(plugins.self)
store.register(plugins.self_info)
self.assertTrue(len(store.plugins) == 1)