mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Yes, I realize that the new stuff doesn't work with these tests, but I
can't for the life of me figure out why not! The tests look set up the way they are supposed to (ChannelPlugin now...)
This commit is contained in:
parent
ebb7becd4f
commit
a4b3d66748
@ -64,14 +64,15 @@ if sqlite is not None:
|
||||
self._testOptions('(|a)', ['a', ''])
|
||||
self._testOptions('((a)|(b))', ['(a)', '(b)'])
|
||||
|
||||
class FactoidsTestCase(PluginTestCase, PluginDocumentation):
|
||||
class FactoidsTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
plugins = ('MoobotFactoids', 'User', 'Utilities')
|
||||
config = {'reply.whenNotCommand': False}
|
||||
def setUp(self):
|
||||
PluginTestCase.setUp(self)
|
||||
ChannelPluginTestCase.setUp(self)
|
||||
# Create a valid user to use
|
||||
self.prefix = 'foo!bar@baz'
|
||||
self.assertNotError('register tester moo')
|
||||
self.irc.feedMsg(ircmsgs.privmsg(self.nick, 'register tester moo',
|
||||
prefix=self.prefix))
|
||||
|
||||
def testAddFactoid(self):
|
||||
self.assertNotError('moo is foo')
|
||||
|
Loading…
Reference in New Issue
Block a user