Beispiel #1
0
 def test_export_goodreads(self):
     exporters.export_goodreads(self.blist, "gr_test.csv")
     with open("gr_test.csv") as f:
         test_lines = f.readlines()
     with open("test/books.csv") as f:
         known_lines = f.readlines()
     assert test_lines == known_lines
     os.remove("gr_test.csv")
Beispiel #2
0
def main():
    blist = parsers.read_book_list(list_file)
    exporters.export_goodreads(blist, output_file)