mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Loaded Misc in every test because that's just plain neceessary, what with replyWhenNotCommand and all.
This commit is contained in:
parent
f2ab2576da
commit
9caaf8fef9
@ -60,6 +60,7 @@ import ircmsgs
|
||||
import ircutils
|
||||
import callbacks
|
||||
import Owner
|
||||
import Misc
|
||||
|
||||
originalCallbacksGetHelp = callbacks.getHelp
|
||||
lastGetHelp = 'x'*1000
|
||||
@ -144,13 +145,14 @@ class PluginTestCase(unittest.TestCase):
|
||||
while self.irc.takeMsg():
|
||||
pass
|
||||
_ = Owner.loadPluginClass(self.irc, Owner)
|
||||
_ = Owner.loadPluginClass(self.irc, Misc)
|
||||
if isinstance(self.plugins, str):
|
||||
if self.plugins != 'Owner':
|
||||
if self.plugins not in ('Owner', 'Misc'):
|
||||
module = Owner.loadPluginModule(self.plugins)
|
||||
cb = Owner.loadPluginClass(self.irc, module)
|
||||
else:
|
||||
for name in self.plugins:
|
||||
if name != 'Owner':
|
||||
if name not in ('Owner', 'Misc'):
|
||||
module = Owner.loadPluginModule(name)
|
||||
cb = Owner.loadPluginClass(self.irc, module)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user