mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +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 ircutils
|
||||||
import callbacks
|
import callbacks
|
||||||
import Owner
|
import Owner
|
||||||
|
import Misc
|
||||||
|
|
||||||
originalCallbacksGetHelp = callbacks.getHelp
|
originalCallbacksGetHelp = callbacks.getHelp
|
||||||
lastGetHelp = 'x'*1000
|
lastGetHelp = 'x'*1000
|
||||||
@ -144,13 +145,14 @@ class PluginTestCase(unittest.TestCase):
|
|||||||
while self.irc.takeMsg():
|
while self.irc.takeMsg():
|
||||||
pass
|
pass
|
||||||
_ = Owner.loadPluginClass(self.irc, Owner)
|
_ = Owner.loadPluginClass(self.irc, Owner)
|
||||||
|
_ = Owner.loadPluginClass(self.irc, Misc)
|
||||||
if isinstance(self.plugins, str):
|
if isinstance(self.plugins, str):
|
||||||
if self.plugins != 'Owner':
|
if self.plugins not in ('Owner', 'Misc'):
|
||||||
module = Owner.loadPluginModule(self.plugins)
|
module = Owner.loadPluginModule(self.plugins)
|
||||||
cb = Owner.loadPluginClass(self.irc, module)
|
cb = Owner.loadPluginClass(self.irc, module)
|
||||||
else:
|
else:
|
||||||
for name in self.plugins:
|
for name in self.plugins:
|
||||||
if name != 'Owner':
|
if name not in ('Owner', 'Misc'):
|
||||||
module = Owner.loadPluginModule(name)
|
module = Owner.loadPluginModule(name)
|
||||||
cb = Owner.loadPluginClass(self.irc, module)
|
cb = Owner.loadPluginClass(self.irc, module)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user