X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f3e9066b40546163f0df4678702ca4d7d31f9f84..05c0c86de9498d8f3380768d1669f7044488bc3f:/src/catalogue/fixtures/test-books.yaml diff --git a/src/catalogue/fixtures/test-books.yaml b/src/catalogue/fixtures/test-books.yaml index 43ca447e9..6c24400b5 100644 --- a/src/catalogue/fixtures/test-books.yaml +++ b/src/catalogue/fixtures/test-books.yaml @@ -1,21 +1,28 @@ + - model: catalogue.book pk: 1 fields: slug: parent + title: Parent sort_key: parent sort_key_author: john doe + xml_file: xml/parent.xml epub_file: epub/parent.epub mobi_file: mobi/parent.mobi pdf_file: pdf/parent.pdf cover: cover/parent.jpg - cover_api_thumb: cover/parent_cover_api_thumb.jpg + cover_api_thumb: cover_api_thumb/parent.jpg + simple_cover: simple_cover/parent.jpg + cover_thumb: cover_thumb/parent.jpg + recommended: true created_at: "1970-01-03 0:0Z" changed_at: "1970-01-03 0:0Z" - extra_info: "{\"epoch\": \"Barok\"}" + extra_info: '{"epoch": "Barok"}' - model: catalogue.book pk: 2 fields: slug: child + title: Child sort_key: child parent: 1 created_at: "1970-01-02 0:0Z" @@ -24,10 +31,15 @@ pk: 3 fields: slug: grandchild + title: Grandchild sort_key: grandchild parent: 2 + xml_file: xml/grandchild.xml txt_file: txt/grandchild.txt html_file: html/grandchild.html + epub_file: epub/grandchild.epub + mobi_file: mobi/grandchild.mobi + pdf_file: pdf/grandchild.pdf fb2_file: fb2/grandchild.fb2 created_at: "1970-01-01 0:0Z" changed_at: "1970-01-01 0:0Z" @@ -68,29 +80,95 @@ name: Sonet created_at: "1970-01-03 0:0Z" changed_at: "1970-01-03 0:0Z" +- model: catalogue.tag + pk: 5 + fields: + slug: wiersz + sort_key: wiersz + category: genre + name: Wiersz + created_at: "1970-01-03 0:0Z" + changed_at: "1970-01-03 0:0Z" + - model: catalogue.tagrelation - pk: 1 fields: tag: 1 content_type: ['catalogue', 'book'] object_id: 1 - model: catalogue.tagrelation - pk: 2 fields: tag: 2 content_type: ['catalogue', 'book'] object_id: 1 - model: catalogue.tagrelation - pk: 3 fields: tag: 3 content_type: ['catalogue', 'book'] object_id: 1 - model: catalogue.tagrelation - pk: 4 fields: tag: 4 content_type: ['catalogue', 'book'] object_id: 1 +- model: catalogue.tagrelation + fields: + tag: 4 + content_type: ['catalogue', 'book'] + object_id: 3 +- model: catalogue.tagrelation + fields: + tag: 5 + content_type: ['catalogue', 'book'] + object_id: 2 + +- model: catalogue.bookmedia + fields: + book: 1 + type: mp3 + name: Parent Audiobook + file: mp3/parent.mp3 + uploaded_at: "1970-01-03 0:0Z" + extra_info: '{"director_name": "Director", "artist_name": "Artist"}' +- model: catalogue.bookmedia + fields: + book: 1 + type: daisy + name: Parent DAISY + file: daisy/parent.daisy + uploaded_at: "1970-01-03 0:0Z" + +- model: catalogue.fragment + pk: 1 + fields: + short_text: "Fragment" + text: "A fragment" + anchor: "an-anchor" + book: 2 +- model: catalogue.tagrelation + fields: + tag: 5 + content_type: ['catalogue', 'fragment'] + object_id: 1 +- model: catalogue.tag + pk: 101 + fields: + slug: koniec + sort_key: koniec + category: theme + name: Koniec + created_at: "1970-01-03 0:0Z" + changed_at: "1970-01-03 0:0Z" +- model: catalogue.tagrelation + fields: + tag: 101 + content_type: ['catalogue', 'fragment'] + object_id: 1 + +- model: catalogue.collection + fields: + title: A Collection + slug: a-collection + description: Description + book_slugs: parent