From 119619d437ce0f8aaa3eaa758f67870bd51892f8 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 18 Apr 2004 02:40:18 +0000 Subject: [PATCH] Updated to fix a bug in Config.help and a bug in the test for Config.list. --- src/Config.py | 2 +- test/test_Config.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Config.py b/src/Config.py index 12fb68619..52bb0a66d 100644 --- a/src/Config.py +++ b/src/Config.py @@ -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) diff --git a/test/test_Config.py b/test/test_Config.py index f76bbe132..44d475fcb 100644 --- a/test/test_Config.py +++ b/test/test_Config.py @@ -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')