1
0
Fork 0

Write tests for Calibre importer

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2022-05-05 13:08:01 +02:00
parent 6bd9b725e2
commit 22fcb61fb2
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
3 changed files with 72 additions and 1 deletions

View file

@ -1,4 +1,6 @@
""" handle reading a csv from calibre """
from bookwyrm.models import Shelf
from . import Importer
@ -9,4 +11,4 @@ class CalibreImporter(Importer):
def get_shelf(self, normalized_row):
# Calibre export does not indicate which shelf to use. Go with a default one for now
return "to-read"
return Shelf.TO_READ