Alias & MoobotFactoids: Fix import error in test.py.

This commit is contained in:
Valentin Lorentz 2012-08-05 14:14:55 +02:00
parent 242a54fbf2
commit 34bb33b65f
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ from supybot.test import *
import supybot.plugin as plugin
Alias = plugin.loadPluginModule('Alias')
import plugin as Alias
class FunctionsTest(SupyTestCase):
def testFindBiggestDollar(self):

View File

@ -37,7 +37,7 @@ try:
except ImportError:
sqlite = None
MF = plugin.loadPluginModule('MoobotFactoids')
import plugin
MFconf = conf.supybot.plugins.MoobotFactoids
class OptionListTestCase(SupyTestCase):
@ -47,7 +47,7 @@ class OptionListTestCase(SupyTestCase):
original = L[:]
while max and L:
max -= 1
option = MF.plugin.pickOptions(s)
option = plugin.pickOptions(s)
self.failUnless(option in original,
'Option %s not in %s' % (option, original))
if option in L: