Ejemplo n.º 1
0
def make_row(book):
    """Returns and OrderedDict of the information required by the goodreads
    csv format.

    """
    row = OrderedDict()
    row["title"] = '"' + book.title + '"'

    row["authors"] = " and ".join([author.first_name + ' ' + author.last_name\
                                   for author in book.authors])
    row["isbn"] = get_isbn(book)
    row["my rating"] = ""
    row["average rating"] = ""
    row["publisher"] = ""
    row["binding"] = ""
    row["year published"] = ""
    row["original publication year"] = ""
    row["date read"] = ""
    row["date added"] = ""
    row["bookshelves"] = ""
    row["my review"] = ""
    return row
Ejemplo n.º 2
0
 def test_get_isbn(self):
     isbn = gbook_search.get_isbn(self.spook_country)
     assert isbn == "9780425226711"