def setUp(self): MiroTestCase.setUp(self) self.renderer = itemrenderer.ItemRenderer() self.feed = models.Feed(u'http://example.com/feed.rss') self.item = testobjects.make_item(self.feed, u'item') self.manual_feed = models.Feed(u'dtv:manualFeed', initiallyAutoDownloadable=False) self.file_item = models.FileItem(self.make_temp_path(), self.manual_feed.id) app.saved_items = set() app.playback_manager = mock.Mock() app.playback_manager.item_resume_policy.return_value = False
def build_renderer(self): feed_info = widgetutil.get_feed_info(self.id) return itemrenderer.ItemRenderer(display_channel=self.is_folder, is_podcast=(not feed_info.is_directory_feed))