Esempio n. 1
0
    def setUp(self):
        self.core, podcast_list = utils.init_test(
            EXTENSION_FILE,
            [(data.TEST_PODCASTS['Zpravy'], False)]
        )
        self.episode, self.filename = podcast_list

        self.core.config.extensions.enabled = [EXTENSION_NAME]
    def setUp(self):
        self.core, podcast_list = utils.init_test(
            EXTENSION_FILE,
            [(data.TEST_PODCASTS['LinuxOutlaws'], True),
             (data.TEST_PODCASTS['TinFoilHat'], True)
            ]
        )
        self.episode, self.filename, self.episode2, self.filename2 = podcast_list

        self.core.config.extensions.enabled = [EXTENSION_NAME]
    def setUp(self):
        self.core, podcast_list = utils.init_test(
            EXTENSION_FILE,
            [(data.TEST_PODCASTS['CRETorrent'], True)]
        )
        self.episode, self.filename = podcast_list

        test_cmd = 'cp "%s" ' + TEST_OUTPUT        
        self.core.config.extensions.bittorrent_downloader.cmd = test_cmd
        self.core.config.extensions.enabled = [EXTENSION_NAME]
    def setUp(self):
        self.core, podcast_list = utils.init_test(
            EXTENSION_FILE,
            [(data.TEST_PODCASTS['TinFoilHat'], True),
             (data.TEST_PODCASTS['DeimHart'], True)
            ]
        )
        self.episode, self.filename, self.episode1, self.filename1 = podcast_list

        self.core.config.extensions.enabled = [EXTENSION_NAME]

        self.tfh_extension = gpodder.user_extensions.containers[0].module
    def setUp(self):
        self.core, podcast_list = utils.init_test(
            EXTENSION_FILE,
            [(data.TEST_PODCASTS['TinFoilHat'], True)]
        )
        self.episode, self.filename = podcast_list

        self.core.config.extensions.enabled = [EXTENSION_NAME]

        # set ui to gtk because the extension only works with gtk
        gpodder.ui.gtk = True
        gpodder.user_extensions.containers[0].load_extension()
Esempio n. 6
0
    def setUp(self):
        self.core, podcast_list = utils.init_test(
            EXTENSION_FILE,
            [(data.TEST_PODCASTS['DeimHart'], True),
             (data.TEST_PODCASTS['TinFoilHat'], True),
            ]
        )
        (self.ogg_episode, self.ogg_file, self.mp3_episode,
            self.mp3_file) = podcast_list
        self.ogg_file_save = self.save_episode(self.ogg_file)
        self.mp3_file_save = self.save_episode(self.mp3_file)

        self.core.config.extensions.enabled = [EXTENSION_NAME]