Add cover_thumb to tests.
[wolnelektury.git] / src / catalogue / fixtures / test-books.yaml
1 - model: catalogue.book
2   pk: 1
3   fields:
4     slug: parent
5     title: Parent
6     sort_key: parent
7     sort_key_author: john doe
8     xml_file: xml/parent.xml
9     epub_file: epub/parent.epub
10     mobi_file: mobi/parent.mobi
11     pdf_file: pdf/parent.pdf
12     cover: cover/parent.jpg
13     cover_api_thumb: cover_api_thumb/parent.jpg
14     simple_cover: simple_cover/parent.jpg
15     cover_thumb: cover_thumb/parent.jpg
16     recommended: true
17     created_at: "1970-01-03 0:0Z"
18     changed_at: "1970-01-03 0:0Z"
19     extra_info: '{"epoch": "Barok"}'
20 - model: catalogue.book
21   pk: 2
22   fields:
23     slug: child
24     title: Child
25     sort_key: child
26     parent: 1
27     created_at: "1970-01-02 0:0Z"
28     changed_at: "1970-01-02 0:0Z"
29 - model: catalogue.book
30   pk: 3
31   fields:
32     slug: grandchild
33     title: Grandchild
34     sort_key: grandchild
35     parent: 2
36     txt_file: txt/grandchild.txt
37     html_file: html/grandchild.html
38     fb2_file: fb2/grandchild.fb2
39     created_at: "1970-01-01 0:0Z"
40     changed_at: "1970-01-01 0:0Z"
41
42 - model: catalogue.tag
43   pk: 1
44   fields:
45     slug: john-doe
46     sort_key: john doe
47     category: author
48     name: John Doe
49     created_at: "1970-01-03 0:0Z"
50     changed_at: "1970-01-03 0:0Z"
51 - model: catalogue.tag
52   pk: 2
53   fields:
54     slug: liryka
55     sort_key: liryka
56     category: kind
57     name: Liryka
58     created_at: "1970-01-03 0:0Z"
59     changed_at: "1970-01-03 0:0Z"
60 - model: catalogue.tag
61   pk: 3
62   fields:
63     slug: barok
64     sort_key: barok
65     category: epoch
66     name: Barok
67     created_at: "1970-01-03 0:0Z"
68     changed_at: "1970-01-03 0:0Z"
69 - model: catalogue.tag
70   pk: 4
71   fields:
72     slug: sonet
73     sort_key: sonet
74     category: genre
75     name: Sonet
76     created_at: "1970-01-03 0:0Z"
77     changed_at: "1970-01-03 0:0Z"
78 - model: catalogue.tag
79   pk: 5
80   fields:
81     slug: wiersz
82     sort_key: wiersz
83     category: genre
84     name: Wiersz
85     created_at: "1970-01-03 0:0Z"
86     changed_at: "1970-01-03 0:0Z"
87
88
89 - model: catalogue.tagrelation
90   fields:
91     tag: 1
92     content_type: ['catalogue', 'book']
93     object_id: 1
94 - model: catalogue.tagrelation
95   fields:
96     tag: 2
97     content_type: ['catalogue', 'book']
98     object_id: 1
99 - model: catalogue.tagrelation
100   fields:
101     tag: 3
102     content_type: ['catalogue', 'book']
103     object_id: 1
104 - model: catalogue.tagrelation
105   fields:
106     tag: 4
107     content_type: ['catalogue', 'book']
108     object_id: 1
109 - model: catalogue.tagrelation
110   fields:
111     tag: 4
112     content_type: ['catalogue', 'book']
113     object_id: 3
114 - model: catalogue.tagrelation
115   fields:
116     tag: 5
117     content_type: ['catalogue', 'book']
118     object_id: 2
119
120 - model: catalogue.bookmedia
121   fields:
122     book: 1
123     type: mp3
124     name: Parent Audiobook
125     file: mp3/parent.mp3
126     uploaded_at: "1970-01-03 0:0Z"
127     extra_info: {"director_name": "Director", "artist_name": "Artist"}
128 - model: catalogue.bookmedia
129   fields:
130     book: 1
131     type: daisy
132     name: Parent DAISY
133     file: daisy/parent.daisy
134     uploaded_at: "1970-01-03 0:0Z"
135
136 - model: catalogue.fragment
137   id: 1
138   fields:
139     short_text: "Fragment"
140     text: "A fragment"
141     anchor: "an-anchor"
142     book: 2
143 - model: catalogue.tagrelation
144   fields:
145     tag: 5
146     content_type: ['catalogue', 'fragment']
147     object_id: 1
148 - model: catalogue.tag
149   pk: 101
150   fields:
151     slug: koniec
152     sort_key: koniec
153     category: theme
154     name: Koniec
155     created_at: "1970-01-03 0:0Z"
156     changed_at: "1970-01-03 0:0Z"
157 - model: catalogue.tagrelation
158   fields:
159     tag: 101
160     content_type: ['catalogue', 'fragment']
161     object_id: 1
162
163 - model: catalogue.collection
164   fields:
165     title: A Collection
166     slug: a-collection
167     description: Description
168     book_slugs: parent
169