mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Owner: Skip test of @rename for nested commands.
This commit is contained in:
parent
f44e033827
commit
b7b60630d8
@ -28,6 +28,7 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
###
|
||||
|
||||
from unittest import skip
|
||||
from supybot.test import *
|
||||
|
||||
import supybot.conf as conf
|
||||
@ -84,6 +85,16 @@ class OwnerTestCase(PluginTestCase):
|
||||
def testRename(self):
|
||||
self.assertError('rename Admin join JOIN')
|
||||
self.assertError('rename Admin join jo-in')
|
||||
self.assertNotError('rename Admin join testcommand')
|
||||
self.assertRegexp('list Admin', 'testcommand')
|
||||
self.assertNotRegexp('list Admin', 'join')
|
||||
self.assertError('help join')
|
||||
self.assertRegexp('help testcommand', 'Tell the bot to join')
|
||||
self.assertRegexp('join', 'not a valid command')
|
||||
self.assertHelp('testcommand')
|
||||
|
||||
@skip('Nested commands cannot be renamed yet.')
|
||||
def testRenameNested(self):
|
||||
self.assertNotError('rename Admin "capability remove" rmcap')
|
||||
self.assertNotRegexp('list Admin', 'capability remove')
|
||||
self.assertRegexp('list Admin', 'rmcap')
|
||||
|
Loading…
Reference in New Issue
Block a user