mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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 = self._canonicalizeName(name)
|
||||
wrapper = getWrapper(name)
|
||||
if wrapper.help:
|
||||
if hasattr(wrapper, 'help'):
|
||||
irc.reply(wrapper.help)
|
||||
else:
|
||||
irc.error('%s has no help.' % name)
|
||||
|
@ -31,8 +31,11 @@
|
||||
|
||||
from testsupport import *
|
||||
|
||||
import conf
|
||||
|
||||
class ConfigTestCase(ChannelPluginTestCase):
|
||||
plugins = ('Config',)
|
||||
# We add utilities so there's something in supybot.plugins.
|
||||
plugins = ('Config', 'Ebay')
|
||||
def testGet(self):
|
||||
self.assertNotRegexp('config get supybot.reply', r'registry\.Group')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user