mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Fixed to run on systems without sqlite.
This commit is contained in:
parent
41c2ead5bd
commit
f79aafa3f7
@ -40,14 +40,14 @@ except ImportError:
|
|||||||
|
|
||||||
import conf
|
import conf
|
||||||
|
|
||||||
class LookupTestCase(PluginTestCase, PluginDocumentation):
|
if sqlite:
|
||||||
plugins = ('Lookup', 'Alias')
|
class LookupTestCase(PluginTestCase, PluginDocumentation):
|
||||||
d = {
|
plugins = ('Lookup', 'Alias')
|
||||||
'foo': 'bar',
|
d = {
|
||||||
'bar': 'baz',
|
'foo': 'bar',
|
||||||
'your mom': 'my mom',
|
'bar': 'baz',
|
||||||
|
'your mom': 'my mom',
|
||||||
}
|
}
|
||||||
if sqlite:
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
PluginTestCase.setUp(self)
|
PluginTestCase.setUp(self)
|
||||||
fd = file(os.path.join(conf.dataDir, 'foo.supyfact'), 'w')
|
fd = file(os.path.join(conf.dataDir, 'foo.supyfact'), 'w')
|
||||||
|
@ -36,9 +36,9 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
sqlite = None
|
sqlite = None
|
||||||
|
|
||||||
class MarkovTestCase(PluginTestCase, PluginDocumentation):
|
if sqlite is not None:
|
||||||
plugins = ('Markov',)
|
class MarkovTestCase(PluginTestCase, PluginDocumentation):
|
||||||
if sqlite is not None:
|
plugins = ('Markov',)
|
||||||
pass # Put actual tests here.
|
pass # Put actual tests here.
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,9 +39,9 @@ except ImportError:
|
|||||||
sqlite = None
|
sqlite = None
|
||||||
|
|
||||||
|
|
||||||
class QuoteGrabsTestCase(ChannelPluginTestCase, PluginDocumentation):
|
if sqlite:
|
||||||
plugins = ('QuoteGrabs',)
|
class QuoteGrabsTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||||
if sqlite:
|
plugins = ('QuoteGrabs',)
|
||||||
def testQuoteGrab(self):
|
def testQuoteGrab(self):
|
||||||
testPrefix = 'foo!bar@baz'
|
testPrefix = 'foo!bar@baz'
|
||||||
self.assertError('grab foo')
|
self.assertError('grab foo')
|
||||||
|
Loading…
Reference in New Issue
Block a user