Give a library book one form in the API
A book from the search, from the list of library candidates and from a lookup now has the same fields, with the authors as a list.
This commit is contained in:
@@ -142,7 +142,14 @@ def test_import_from_the_library(fake):
|
||||
def test_library_candidates_and_search(fake):
|
||||
candidates = orchestrator.library_candidates()
|
||||
assert candidates == [
|
||||
{"calibre_id": 1, "uuid": "uuid-1", "title": "Test Story", "authors": "Writer", "site": "www.royalroad.com"}
|
||||
{
|
||||
"id": 1,
|
||||
"uuid": "uuid-1",
|
||||
"title": "Test Story",
|
||||
"authors": ["Writer"],
|
||||
"publisher": "www.royalroad.com",
|
||||
"formats": ["epub"],
|
||||
}
|
||||
]
|
||||
story_id = add_story()
|
||||
orchestrator.link_story(story_id, "uuid-1")
|
||||
|
||||
Reference in New Issue
Block a user