Write tests for Calibre importer
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
parent
6bd9b725e2
commit
22fcb61fb2
3 changed files with 72 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue