Fixed to run on systems without sqlite.

This commit is contained in:
Jeremy Fincher 2003-11-22 04:25:42 +00:00
parent 41c2ead5bd
commit f79aafa3f7
3 changed files with 13 additions and 13 deletions

View File

@ -40,14 +40,14 @@ except ImportError:
import conf
class LookupTestCase(PluginTestCase, PluginDocumentation):
plugins = ('Lookup', 'Alias')
d = {
'foo': 'bar',
'bar': 'baz',
'your mom': 'my mom',
if sqlite:
class LookupTestCase(PluginTestCase, PluginDocumentation):
plugins = ('Lookup', 'Alias')
d = {
'foo': 'bar',
'bar': 'baz',
'your mom': 'my mom',
}
if sqlite:
def setUp(self):
PluginTestCase.setUp(self)
fd = file(os.path.join(conf.dataDir, 'foo.supyfact'), 'w')

View File

@ -36,9 +36,9 @@ try:
except ImportError:
sqlite = None
class MarkovTestCase(PluginTestCase, PluginDocumentation):
plugins = ('Markov',)
if sqlite is not None:
if sqlite is not None:
class MarkovTestCase(PluginTestCase, PluginDocumentation):
plugins = ('Markov',)
pass # Put actual tests here.

View File

@ -39,9 +39,9 @@ except ImportError:
sqlite = None
class QuoteGrabsTestCase(ChannelPluginTestCase, PluginDocumentation):
plugins = ('QuoteGrabs',)
if sqlite:
if sqlite:
class QuoteGrabsTestCase(ChannelPluginTestCase, PluginDocumentation):
plugins = ('QuoteGrabs',)
def testQuoteGrab(self):
testPrefix = 'foo!bar@baz'
self.assertError('grab foo')