mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
plugins/RSS/test.py: A missing step in testAnnounce was causing other tests to unexpectedly fail.
This commit is contained in:
parent
48120bfdd2
commit
6722a856d8
@ -31,7 +31,7 @@ from supybot.test import *
|
|||||||
|
|
||||||
url = 'http://www.advogato.org/rss/articles.xml'
|
url = 'http://www.advogato.org/rss/articles.xml'
|
||||||
class RSSTestCase(ChannelPluginTestCase):
|
class RSSTestCase(ChannelPluginTestCase):
|
||||||
plugins = ('RSS',)
|
plugins = ('RSS','Plugin')
|
||||||
def testRssAddBadName(self):
|
def testRssAddBadName(self):
|
||||||
self.assertError('rss add "foo bar" %s' % url)
|
self.assertError('rss add "foo bar" %s' % url)
|
||||||
|
|
||||||
@ -57,6 +57,7 @@ class RSSTestCase(ChannelPluginTestCase):
|
|||||||
self.assertNotError('rss add advogato %s' % url)
|
self.assertNotError('rss add advogato %s' % url)
|
||||||
self.assertNotError('rss announce advogato')
|
self.assertNotError('rss announce advogato')
|
||||||
self.assertNotRegexp('rss announce', r'ValueError')
|
self.assertNotRegexp('rss announce', r'ValueError')
|
||||||
|
self.assertNotError('rss announce --remove advogato')
|
||||||
self.assertNotError('rss remove advogato')
|
self.assertNotError('rss remove advogato')
|
||||||
|
|
||||||
def testRss(self):
|
def testRss(self):
|
||||||
@ -69,6 +70,7 @@ class RSSTestCase(ChannelPluginTestCase):
|
|||||||
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.assertNotRegexp('list RSS', 'advogato')
|
||||||
self.assertError('advogato')
|
self.assertError('advogato')
|
||||||
self.assertError('rss advogato')
|
self.assertError('rss advogato')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user