def test_database_add_episode_progress(prevent_modification): copyfile(my_dir + "/datafiles/database_example1.db", Database.PATH) mydatabase = Database() ep = mydatabase.episode(1) mydatabase.replace_progress(ep, 1000) ep_db = mydatabase.episode(1) assert ep_db.progress == 1000 assert ep.progress == 1000
def test_database_episode_id(prevent_modification): copyfile(my_dir + "/datafiles/database_example1.db", Database.PATH) mydatabase = Database() episode = mydatabase.episode(1) assert episode.ep_id == 1 assert episode.title == "episode title"