mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 07:34:08 +01:00
test/test_callbacks.py: Added a test for multiple, nested invalidCommands not being recognized.
This commit is contained in:
parent
cc4c143176
commit
0027916214
@ -291,7 +291,7 @@ class ProperStringificationOfReplyArgs(PluginTestCase):
|
|||||||
self.assertResponse('expectsstring lower [nonstring int]', '1')
|
self.assertResponse('expectsstring lower [nonstring int]', '1')
|
||||||
|
|
||||||
class PrivmsgTestCase(ChannelPluginTestCase):
|
class PrivmsgTestCase(ChannelPluginTestCase):
|
||||||
plugins = ('Utilities', 'Misc',)
|
plugins = ('Utilities', 'Misc', 'Web', 'Karma')
|
||||||
conf.allowEval = True
|
conf.allowEval = True
|
||||||
timeout = 2
|
timeout = 2
|
||||||
def testEmptySquareBrackets(self):
|
def testEmptySquareBrackets(self):
|
||||||
@ -505,6 +505,15 @@ class PrivmsgTestCase(ChannelPluginTestCase):
|
|||||||
finally:
|
finally:
|
||||||
conf.supybot.reply.whenNotCommand.set(original)
|
conf.supybot.reply.whenNotCommand.set(original)
|
||||||
|
|
||||||
|
def testSecondInvalidCommandRespondsWithThreadedInvalidCommands(self):
|
||||||
|
try:
|
||||||
|
orig = conf.supybot.plugins.Karma.response()
|
||||||
|
conf.supybot.plugins.Karma.response.setValue(True)
|
||||||
|
self.assertNotRegexp('echo [foo++] [foo++]', 'not a valid')
|
||||||
|
_ = self.irc.takeMsg()
|
||||||
|
finally:
|
||||||
|
conf.supybot.plugins.Karma.response.setValue(orig)
|
||||||
|
|
||||||
|
|
||||||
class PluginRegexpTestCase(PluginTestCase):
|
class PluginRegexpTestCase(PluginTestCase):
|
||||||
plugins = ()
|
plugins = ()
|
||||||
|
Loading…
Reference in New Issue
Block a user