def test_process(self): """ Test process """ show = TVShow(1, 3) show.name = test.SHOW_NAME show.location = test.SHOW_DIR show.saveToDB() settings.showList = [show] episode = TVEpisode(show, test.SEASON, test.EPISODE) episode.name = "some episode name" episode.saveToDB() add_name('show name', 3) settings.PROCESS_METHOD = 'move' post_processor = PostProcessor(test.FILE_PATH) self.assertTrue(post_processor.process())
def test_process(self): """ Test process """ show = TVShow(1, 3) show.name = conftest.SHOW_NAME show.location = conftest.SHOW_DIR show.saveToDB() settings.showList = [show] episode = TVEpisode(show, conftest.SEASON, conftest.EPISODE) episode.name = "some episode name" episode.saveToDB() add_name("show name", 3) settings.PROCESS_METHOD = "move" post_processor = PostProcessor(conftest.FILE_PATH) assert post_processor.process()