mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-29 10:56:57 +01:00
Alias & MoobotFactoids: Fix import error in test.py.
This commit is contained in:
parent
242a54fbf2
commit
34bb33b65f
@ -31,7 +31,7 @@ from supybot.test import *
|
|||||||
|
|
||||||
import supybot.plugin as plugin
|
import supybot.plugin as plugin
|
||||||
|
|
||||||
Alias = plugin.loadPluginModule('Alias')
|
import plugin as Alias
|
||||||
|
|
||||||
class FunctionsTest(SupyTestCase):
|
class FunctionsTest(SupyTestCase):
|
||||||
def testFindBiggestDollar(self):
|
def testFindBiggestDollar(self):
|
||||||
|
@ -37,7 +37,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
sqlite = None
|
sqlite = None
|
||||||
|
|
||||||
MF = plugin.loadPluginModule('MoobotFactoids')
|
import plugin
|
||||||
MFconf = conf.supybot.plugins.MoobotFactoids
|
MFconf = conf.supybot.plugins.MoobotFactoids
|
||||||
|
|
||||||
class OptionListTestCase(SupyTestCase):
|
class OptionListTestCase(SupyTestCase):
|
||||||
@ -47,7 +47,7 @@ class OptionListTestCase(SupyTestCase):
|
|||||||
original = L[:]
|
original = L[:]
|
||||||
while max and L:
|
while max and L:
|
||||||
max -= 1
|
max -= 1
|
||||||
option = MF.plugin.pickOptions(s)
|
option = plugin.pickOptions(s)
|
||||||
self.failUnless(option in original,
|
self.failUnless(option in original,
|
||||||
'Option %s not in %s' % (option, original))
|
'Option %s not in %s' % (option, original))
|
||||||
if option in L:
|
if option in L:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user