root/trunk/data/fixtures/test_data.yml

Revision 55, 3.2 kB (checked in by fabien, 3 years ago)

day 20 modifications

Line 
1 User:
2   anonymous:
3     nickname:   anonymous
4     first_name: Anonymous
5     last_name:  Coward
6
7   fabien:
8     nickname:   fabpot
9     first_name: Fabien
10     last_name:  Potencier
11     password:   symfony
12     email:      fp@example.com
13     is_administrator: on
14
15   francois:
16     nickname:   francois
17     first_name: François
18     last_name:  Zaninotto
19     password:   adventcal
20     email:      fz@example.com
21
22 Question:
23   q1:
24     title: What shall I do tonight with my girlfriend?
25     user_id: fabien
26     body:  |
27       We shall meet in front of the __Dunkin'Donuts__ before dinner,
28       and I haven't the slightest idea of what I can do with her.
29       She's not interested in _programming_, _space opera movies_ nor _insects_.
30       She's kinda cute, so I __really__ need to find something
31       that will keep her to my side for another evening.
32
33   q2:
34     title: What can I offer to my step mother?
35     user_id: anonymous
36     body:  |
37       My stepmother has everything a stepmother is usually offered
38       (watch, vacuum cleaner, earrings, [del.icio.us](http://del.icio.us) account).
39       Her birthday comes next week, I am broke, and I know that
40       if I don't offer her something *sweet*, my girlfriend
41       won't look at me in the eyes for another month.
42
43   q3:
44     title: How can I generate traffic to my blog?
45     user_id: francois
46     body:  |
47       I have a very swell blog that talks
48       about my class and mates and pets and favorite movies.
49
50   q4:
51     title: Test4
52     user_id: anonymous
53     body: Test
54
55   q5:
56     title: Test4
57     user_id: anonymous
58     body: Test
59
60   q6:
61     title: Test4
62     user_id: anonymous
63     body: Test
64
65 Interest:
66   i1: { user_id: fabien, question_id: q1 }
67   i2: { user_id: francois, question_id: q1 }
68   i3: { user_id: francois, question_id: q2 }
69   i4: { user_id: fabien, question_id: q2 }
70
71 Answer:
72   a1_q1:
73     question_id: q1
74     user_id:     francois
75     body:        |
76       You can try to read her poetry. Chicks love that kind of things.
77
78   a2_q1:
79     question_id: q1
80     user_id:     fabien
81     body:        |
82       Don't bring her to a doghnuts shop. Ever. Girls don't like to be
83       seen eating with their fingers - although it's nice.
84
85   a3_q2:
86     question_id: q2
87     user_id:     fabien
88     body:        |
89       The answer is in the question: buy her a step, so she can
90       get some exercise and be grateful for the weight she will
91       lose.
92
93   a4_q3:
94     question_id: q3
95     user_id:     fabien
96     body:        |
97       Build it with symfony - and people will love it.
98
99 Relevancy:
100   rel1:
101     answer_id: a1_q1
102     user_id:   fabien
103     score:     1
104
105   rel2:
106     answer_id: a1_q1
107     user_id:   francois
108     score:     -1
109
110 QuestionTag:
111   t1: { question_id: q1, user_id: fabien, tag: relatives }
112   t2: { question_id: q1, user_id: fabien, tag: girl }
113   t4: { question_id: q1, user_id: francois, tag: activities }
114   t6: { question_id: q2, user_id: francois, tag: 'real life' }
115   t5: { question_id: q2, user_id: fabien, tag: relatives }
116   t5: { question_id: q2, user_id: fabien, tag: present }
117   t6: { question_id: q2, user_id: francois, tag: 'real life' }
118   t7: { question_id: q3, user_id: francois, tag: blog }
119   t8: { question_id: q3, user_id: francois, tag: activities }
Note: See TracBrowser for help on using the browser.