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:
tim
2026-10-03 08:09:41 +02:00
parent 22478c3a56
commit 89709f875a
7 changed files with 31 additions and 22 deletions
+8 -1
View File
@@ -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")