def test_get_episode(): show = Series(1, 1, "en") show.name = "show name" show.network = "cbs" show.genre = "crime" show.runtime = 40 show.status = "Ended" show.default_ep_status = "5" show.airs = "monday" show.start_year = 1987 show.save_to_db() app.showList = [show]
def test_change_indexerid(self): show = Series(1, 1, "en") show.name = "show name" show.network = "cbs" show.genre = "crime" show.runtime = 40 show.status = "Ended" show.default_ep_status = "5" show.airs = "monday" show.start_year = 1987 show.save_to_db() show._load_from_db() show.indexerid = 2 show.save_to_db() show._load_from_db() self.assertEqual(show.indexerid, 2)