mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Made this work on boxes that don't have sqlite.
This commit is contained in:
parent
bfcff00380
commit
715bdcf6e3
@ -31,12 +31,18 @@
|
|||||||
|
|
||||||
from testsupport import *
|
from testsupport import *
|
||||||
|
|
||||||
import supybot.plugins.Infobot
|
try:
|
||||||
confirms = supybot.plugins.Infobot.confirms
|
import sqlite
|
||||||
dunnos = supybot.plugins.Infobot.dunnos
|
except ImportError:
|
||||||
ibot = conf.supybot.plugins.Infobot
|
sqlite = None
|
||||||
|
|
||||||
class InfobotTestCase(ChannelPluginTestCase):
|
if sqlite is not None:
|
||||||
|
import supybot.plugins.Infobot
|
||||||
|
confirms = supybot.plugins.Infobot.confirms
|
||||||
|
dunnos = supybot.plugins.Infobot.dunnos
|
||||||
|
ibot = conf.supybot.plugins.Infobot
|
||||||
|
|
||||||
|
class InfobotTestCase(ChannelPluginTestCase):
|
||||||
plugins = ('Infobot',)
|
plugins = ('Infobot',)
|
||||||
_endRe = re.compile(r'!|, \S+\.|\.')
|
_endRe = re.compile(r'!|, \S+\.|\.')
|
||||||
def testIsSnarf(self):
|
def testIsSnarf(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user