From 2e2c243b8b55ccc4eed779fcf63372edf4ceed36 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 28 May 2021 19:37:37 +0200 Subject: [PATCH] RSS: Remove flaky test --- plugins/RSS/test.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/plugins/RSS/test.py b/plugins/RSS/test.py index f0aaea345..eab10c61b 100644 --- a/plugins/RSS/test.py +++ b/plugins/RSS/test.py @@ -174,43 +174,6 @@ class RSSTestCase(ChannelPluginTestCase): self._feedMsg('rss announce remove xkcd') self._feedMsg('rss remove xkcd') - def testAnnounceError(self): - """Tests error from a single feed does not prevent other feeds from - being announced.""" - mock = MockResponse() - mock._data = xkcd_old - def open(request): - if request.full_url == 'http://xkcd.com/rss.xml': - return mock - else: - raise Exception('oops, feed crashed') - with patch("urllib.request.OpenerDirector.open", side_effect=open): - timeFastForward(1.1) - try: - self.assertNotError('rss add buggy http://example.org/foo') - self.assertNotError('rss add xkcd http://xkcd.com/rss.xml') - self.assertNotError('rss announce add buggy') - self.assertNotError('rss announce add xkcd') - try: - self.assertNotError(' ', timeout=0.1) - except TimeoutError: - pass - with conf.supybot.plugins.RSS.sortFeedItems.context('oldestFirst'): - with conf.supybot.plugins.RSS.waitPeriod.context(1): - timeFastForward(1.1) - self.assertNoResponse(' ', timeout=0.1) - mock._data = xkcd_new - self.assertNoResponse(' ', timeout=0.1) - timeFastForward(1.1) - self.assertRegexp(' ', 'Chaos') - self.assertRegexp(' ', 'Telescopes') - self.assertNoResponse(' ') - finally: - self._feedMsg('rss announce remove buggy') - self._feedMsg('rss remove buggy') - self._feedMsg('rss announce remove xkcd') - self._feedMsg('rss remove xkcd') - @mock_urllib def testMaxAnnounces(self, mock): mock._data = xkcd_old