mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-19 23:20:57 +01:00
Updated to fix a bug in Config.help and a bug in the test for Config.list.
This commit is contained in:
parent
9be3ea075e
commit
119619d437
@ -199,7 +199,7 @@ class Config(callbacks.Privmsg):
|
|||||||
name = privmsgs.getArgs(args)
|
name = privmsgs.getArgs(args)
|
||||||
name = self._canonicalizeName(name)
|
name = self._canonicalizeName(name)
|
||||||
wrapper = getWrapper(name)
|
wrapper = getWrapper(name)
|
||||||
if wrapper.help:
|
if hasattr(wrapper, 'help'):
|
||||||
irc.reply(wrapper.help)
|
irc.reply(wrapper.help)
|
||||||
else:
|
else:
|
||||||
irc.error('%s has no help.' % name)
|
irc.error('%s has no help.' % name)
|
||||||
|
@ -31,8 +31,11 @@
|
|||||||
|
|
||||||
from testsupport import *
|
from testsupport import *
|
||||||
|
|
||||||
|
import conf
|
||||||
|
|
||||||
class ConfigTestCase(ChannelPluginTestCase):
|
class ConfigTestCase(ChannelPluginTestCase):
|
||||||
plugins = ('Config',)
|
# We add utilities so there's something in supybot.plugins.
|
||||||
|
plugins = ('Config', 'Ebay')
|
||||||
def testGet(self):
|
def testGet(self):
|
||||||
self.assertNotRegexp('config get supybot.reply', r'registry\.Group')
|
self.assertNotRegexp('config get supybot.reply', r'registry\.Group')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user