Necessary rounding.
[wolnelektury.git] / src / catalogue / fixtures / test-books.yaml
index 43ca447..42eefd7 100644 (file)
@@ -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"
   pk: 3
   fields:
     slug: grandchild
+    title: Grandchild
+    preview: true
     sort_key: grandchild
     parent: 2
-    txt_file: txt/grandchild.txt
-    html_file: html/grandchild.html
-    fb2_file: fb2/grandchild.fb2
+    xml_file: secret/grandchild.xml
+    txt_file: secret/grandchild.txt
+    html_file: secret/grandchild.html
+    epub_file: secret/grandchild.epub
+    mobi_file: secret/grandchild.mobi
+    pdf_file: secret/grandchild.pdf
+    fb2_file: secret/grandchild.fb2
     created_at: "1970-01-01 0:0Z"
     changed_at: "1970-01-01 0:0Z"
 
     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