mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +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)
|
self.failUnless(m.args[1].count('||') == 1)
|
||||||
|
|
||||||
def testRssAdd(self):
|
def testRssAdd(self):
|
||||||
|
try:
|
||||||
|
orig = conf.supybot.reply.whenNotCommand()
|
||||||
|
conf.supybot.reply.whenNotCommand.setValue(True)
|
||||||
self.assertNotError('rss add advogato %s' % url)
|
self.assertNotError('rss add advogato %s' % url)
|
||||||
self.assertNotError('advogato')
|
self.assertNotError('advogato')
|
||||||
self.assertNotError('rss advogato')
|
self.assertNotError('rss advogato')
|
||||||
self.assertNotError('rss remove advogato')
|
self.assertNotError('rss remove advogato')
|
||||||
self.assertError('advogato')
|
self.assertError('advogato')
|
||||||
self.assertError('rss advogato')
|
self.assertError('rss advogato')
|
||||||
|
finally:
|
||||||
|
conf.supybot.reply.whenNotCommand.setValue(orig)
|
||||||
|
|
||||||
def testCantAddFeedNamedRss(self):
|
def testCantAddFeedNamedRss(self):
|
||||||
self.assertError('rss add rss %s' % url)
|
self.assertError('rss add rss %s' % url)
|
||||||
|
Loading…
Reference in New Issue
Block a user