Made this work on boxes that don't have sqlite.

This commit is contained in:
Jeremy Fincher 2004-08-19 17:10:24 +00:00
parent bfcff00380
commit 715bdcf6e3

View File

@ -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):