mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Made sure PluginDocumentation didn't check PrivmsgRegexp instances.
This commit is contained in:
parent
d2eff8fdaf
commit
d39475b528
@ -73,6 +73,7 @@ import irclib
|
|||||||
import drivers
|
import drivers
|
||||||
import ircmsgs
|
import ircmsgs
|
||||||
import ircutils
|
import ircutils
|
||||||
|
import callbacks
|
||||||
import OwnerCommands
|
import OwnerCommands
|
||||||
|
|
||||||
fd = file(os.path.join('test', 'rfc2812.msgs'), 'r')
|
fd = file(os.path.join('test', 'rfc2812.msgs'), 'r')
|
||||||
@ -255,6 +256,8 @@ class ChannelPluginTestCase(PluginTestCase):
|
|||||||
class PluginDocumentation:
|
class PluginDocumentation:
|
||||||
def testAllCommandsHaveHelp(self):
|
def testAllCommandsHaveHelp(self):
|
||||||
for cb in self.irc.callbacks:
|
for cb in self.irc.callbacks:
|
||||||
|
if isinstance(cb, callbacks.PrivmsgRegexp):
|
||||||
|
continue
|
||||||
if hasattr(cb, 'isCommand'):
|
if hasattr(cb, 'isCommand'):
|
||||||
for attr in cb.__class__.__dict__:
|
for attr in cb.__class__.__dict__:
|
||||||
if cb.isCommand(attr):
|
if cb.isCommand(attr):
|
||||||
@ -262,6 +265,8 @@ class PluginDocumentation:
|
|||||||
'%s has no help' % attr)
|
'%s has no help' % attr)
|
||||||
def testAllCommandsHaveMorehelp(self):
|
def testAllCommandsHaveMorehelp(self):
|
||||||
for cb in self.irc.callbacks:
|
for cb in self.irc.callbacks:
|
||||||
|
if isinstance(cb, callbacks.PrivmsgRegexp):
|
||||||
|
continue
|
||||||
if hasattr(cb, 'isCommand'):
|
if hasattr(cb, 'isCommand'):
|
||||||
for attr in cb.__class__.__dict__:
|
for attr in cb.__class__.__dict__:
|
||||||
if cb.isCommand(attr):
|
if cb.isCommand(attr):
|
||||||
|
Loading…
Reference in New Issue
Block a user