mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Apparently reply.whenNotCommand is False when we're running the tests
This commit is contained in:
parent
173af6567f
commit
81aff97e71
@ -51,12 +51,17 @@ if network:
|
||||
self.failUnless(m.args[1].count('||') == 1)
|
||||
|
||||
def testRssAdd(self):
|
||||
try:
|
||||
orig = conf.supybot.reply.whenNotCommand()
|
||||
conf.supybot.reply.whenNotCommand.setValue(True)
|
||||
self.assertNotError('rss add advogato %s' % url)
|
||||
self.assertNotError('advogato')
|
||||
self.assertNotError('rss advogato')
|
||||
self.assertNotError('rss remove advogato')
|
||||
self.assertError('advogato')
|
||||
self.assertError('rss advogato')
|
||||
finally:
|
||||
conf.supybot.reply.whenNotCommand.setValue(orig)
|
||||
|
||||
def testCantAddFeedNamedRss(self):
|
||||
self.assertError('rss add rss %s' % url)
|
||||
|
Loading…
Reference in New Issue
Block a user