mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed no-help case in Config.help.
This commit is contained in:
parent
5b4b7f2e4b
commit
048db92e65
@ -153,7 +153,10 @@ class Config(callbacks.Privmsg):
|
||||
"""
|
||||
name = privmsgs.getArgs(args)
|
||||
wrapper = getWrapper(name)
|
||||
if wrapper.help:
|
||||
irc.reply(wrapper.help)
|
||||
else:
|
||||
irc.error('%s has no help.' % name)
|
||||
|
||||
def default(self, irc, msg, args):
|
||||
"""<name>
|
||||
|
@ -51,6 +51,10 @@ class ConfigTestCase(ChannelPluginTestCase):
|
||||
self.assertError('config help supybot.alsdkfj')
|
||||
self.assertNotError('config help supybot.replies.success')
|
||||
|
||||
def testHelpDoesNotAssertionError(self):
|
||||
self.assertNotRegexp('config help supybot.commands.defaultPlugins.help',
|
||||
'AssertionError')
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user