mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Added cool exhaustive help test.
This commit is contained in:
parent
135c57c314
commit
b70a683df1
@ -46,9 +46,9 @@ class ConfigTestCase(ChannelPluginTestCase):
|
|||||||
|
|
||||||
def testHelp(self):
|
def testHelp(self):
|
||||||
self.assertError('config help alsdkfj')
|
self.assertError('config help alsdkfj')
|
||||||
self.assertError('config help supybot')
|
|
||||||
self.assertError('config help supybot.plugins')
|
|
||||||
self.assertError('config help supybot.alsdkfj')
|
self.assertError('config help supybot.alsdkfj')
|
||||||
|
self.assertNotError('config help supybot') # We tell the user to list.
|
||||||
|
self.assertNotError('config help supybot.plugins')
|
||||||
self.assertNotError('config help supybot.replies.success')
|
self.assertNotError('config help supybot.replies.success')
|
||||||
self.assertNotError('config help replies.success')
|
self.assertNotError('config help replies.success')
|
||||||
|
|
||||||
@ -57,6 +57,11 @@ class ConfigTestCase(ChannelPluginTestCase):
|
|||||||
'supybot.commands.defaultPlugins.help',
|
'supybot.commands.defaultPlugins.help',
|
||||||
'AssertionError')
|
'AssertionError')
|
||||||
|
|
||||||
|
def testHelpExhaustively(self):
|
||||||
|
L = conf.supybot.getValues(getChildren=True)
|
||||||
|
for (name, v) in L:
|
||||||
|
self.assertNotError('config help %s' % name)
|
||||||
|
|
||||||
def testSearch(self):
|
def testSearch(self):
|
||||||
self.assertNotError('config search chars')
|
self.assertNotError('config search chars')
|
||||||
self.assertNotError('config channel reply.whenAddressedBy.chars @')
|
self.assertNotError('config channel reply.whenAddressedBy.chars @')
|
||||||
|
Loading…
Reference in New Issue
Block a user