Until we can safely load Karma, this test is staying commented out.

This commit is contained in:
Jeremy Fincher 2009-11-25 09:17:52 -06:00
parent 52e96bff61
commit 89a535e8c1
1 changed files with 12 additions and 12 deletions

View File

@ -290,18 +290,18 @@ class ProperStringificationOfReplyArgs(PluginTestCase):
self.irc.addCallback(self.ExpectsString(self.irc)) self.irc.addCallback(self.ExpectsString(self.irc))
self.assertResponse('expectsstring lower [nonstring int]', '1') self.assertResponse('expectsstring lower [nonstring int]', '1')
class PrivmsgTestCaseWithKarma(ChannelPluginTestCase): ## class PrivmsgTestCaseWithKarma(ChannelPluginTestCase):
plugins = ('Utilities', 'Misc', 'Web', 'Karma', 'String') ## plugins = ('Utilities', 'Misc', 'Web', 'Karma', 'String')
conf.allowEval = True ## conf.allowEval = True
timeout = 2 ## timeout = 2
def testSecondInvalidCommandRespondsWithThreadedInvalidCommands(self): ## def testSecondInvalidCommandRespondsWithThreadedInvalidCommands(self):
try: ## try:
orig = conf.supybot.plugins.Karma.response() ## orig = conf.supybot.plugins.Karma.response()
conf.supybot.plugins.Karma.response.setValue(True) ## conf.supybot.plugins.Karma.response.setValue(True)
self.assertNotRegexp('echo [foo++] [foo++]', 'not a valid') ## self.assertNotRegexp('echo [foo++] [foo++]', 'not a valid')
_ = self.irc.takeMsg() ## _ = self.irc.takeMsg()
finally: ## finally:
conf.supybot.plugins.Karma.response.setValue(orig) ## conf.supybot.plugins.Karma.response.setValue(orig)
class PrivmsgTestCase(ChannelPluginTestCase): class PrivmsgTestCase(ChannelPluginTestCase):