mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Plugin: Fix failures in testPlugin
The tests were running into the ambiguity between nested commands and commands with the same name as their plugin, so "plugin plugin" is treated as specifying the plugin command from the plugin plugin. This leads to it displaying the help, since an argument is expected. Since the Utilities plugin is already loaded by the test suite, use a command from it as the argument to the plugin command. Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
124361d76d
commit
b7efbf409c
@ -32,8 +32,8 @@ from supybot.test import *
|
|||||||
class PluginTestCase(PluginTestCase):
|
class PluginTestCase(PluginTestCase):
|
||||||
plugins = ('Plugin', 'Utilities')
|
plugins = ('Plugin', 'Utilities')
|
||||||
def testPlugin(self):
|
def testPlugin(self):
|
||||||
self.assertRegexp('plugin plugin', 'available.*Plugin plugin')
|
self.assertRegexp('plugin ignore', 'available.*Utilities plugin')
|
||||||
self.assertResponse('echo [plugin plugin]', 'Plugin')
|
self.assertResponse('echo [plugin ignore]', 'Utilities')
|
||||||
|
|
||||||
def testList(self):
|
def testList(self):
|
||||||
self.assertRegexp('plugin list', 'Plugin.*Utilities')
|
self.assertRegexp('plugin list', 'Plugin.*Utilities')
|
||||||
|
Loading…
Reference in New Issue
Block a user