def mp3_data(self, asin):
        input_data = helpers.get_directory(test_path)
        aud = audible_helper.BookData(asin)
        metadata = aud.fetch_api_data(config.api_url)
        chapters = aud.get_chapters()

        # Process metadata and run components to merge files
        mp3 = m4b_helper.M4bMerge(input_data, metadata, chapters)
        return mp3
 def test_get_directory_with_files(self):
     input_data = helpers.get_directory(test_path)
     assert input_data == (test_path, 'mp3', 2)
예제 #3
0
 def test_get_directory_single(self):
     input_data = helpers.get_directory(test_path)
     assert input_data == (test_path, 'mp3', 1)