Project

General

Profile

« Previous | Next » 

Revision 0aa652ff

Added by Mikaël Ates over 11 years ago

fixtures: fix various things to make automated validation successes from fixtures.

View differences:

calebasse/fixtures/dossiers.json
1 1
[
2 2
  {
3
    "pk": 1, 
4
    "model": "dossiers.filestate", 
3
    "pk": 1,
4
    "model": "dossiers.filestate",
5 5
    "fields": {
6
      "status": 1, 
7
      "comment": "", 
8
      "patient": 8, 
9
      "author": 1, 
10
      "created": "2012-11-07T18:54:59.893", 
11
      "previous_state": null, 
6
      "status": 1,
7
      "comment": "",
8
      "patient": 8,
9
      "author": 1,
10
      "created": "2012-10-29T00:00:00",
11
      "previous_state": null,
12 12
      "date_selected": "2012-11-07T00:00:00"
13 13
    }
14
  }, 
14
  },
15 15
  {
16
    "pk": 2, 
17
    "model": "dossiers.filestate", 
16
    "pk": 2,
17
    "model": "dossiers.filestate",
18 18
    "fields": {
19
      "status": 1, 
20
      "comment": "", 
21
      "patient": 9, 
22
      "author": 1, 
23
      "created": "2012-11-07T18:55:09.426", 
24
      "previous_state": null, 
19
      "status": 1,
20
      "comment": "",
21
      "patient": 9,
22
      "author": 1,
23
      "created": "2012-10-29T00:00:00",
24
      "previous_state": null,
25 25
      "date_selected": "2012-11-07T00:00:00"
26 26
    }
27
  }, 
27
  },
28 28
  {
29
    "pk": 3, 
30
    "model": "dossiers.filestate", 
29
    "pk": 3,
30
    "model": "dossiers.filestate",
31 31
    "fields": {
32
      "status": 2, 
33
      "comment": "", 
34
      "patient": 10, 
35
      "author": 1, 
36
      "created": "2012-11-21T14:27:19.671", 
37
      "previous_state": null, 
32
      "status": 2,
33
      "comment": "",
34
      "patient": 10,
35
      "author": 1,
36
      "created": "2012-11-21T14:27:19.671",
37
      "previous_state": null,
38 38
      "date_selected": "2012-11-21T00:00:00"
39 39
    }
40
  }, 
40
  },
41 41
  {
42
    "pk": 4, 
43
    "model": "dossiers.filestate", 
42
    "pk": 4,
43
    "model": "dossiers.filestate",
44 44
    "fields": {
45
      "status": 4, 
46
      "comment": "", 
47
      "patient": 11, 
48
      "author": 1, 
49
      "created": "2012-11-21T14:27:50.036", 
50
      "previous_state": null, 
45
      "status": 4,
46
      "comment": "",
47
      "patient": 11,
48
      "author": 1,
49
      "created": "2012-11-21T14:27:50.036",
50
      "previous_state": null,
51 51
      "date_selected": "2012-11-21T00:00:00"
52 52
    }
53
  }, 
53
  },
54 54
  {
55
    "pk": 5, 
56
    "model": "dossiers.filestate", 
55
    "pk": 5,
56
    "model": "dossiers.filestate",
57 57
    "fields": {
58
      "status": 5, 
59
      "comment": "", 
60
      "patient": 12, 
61
      "author": 1, 
62
      "created": "2012-11-21T14:28:20.773", 
63
      "previous_state": null, 
58
      "status": 5,
59
      "comment": "",
60
      "patient": 12,
61
      "author": 1,
62
      "created": "2012-11-21T14:28:20.773",
63
      "previous_state": null,
64 64
      "date_selected": "2012-11-21T00:00:00"
65 65
    }
66
  }, 
66
  },
67 67
  {
68
    "pk": 6, 
69
    "model": "dossiers.filestate", 
68
    "pk": 6,
69
    "model": "dossiers.filestate",
70 70
    "fields": {
71
      "status": 7, 
72
      "comment": "", 
73
      "patient": 13, 
74
      "author": 1, 
75
      "created": "2012-11-21T14:28:43.228", 
76
      "previous_state": null, 
71
      "status": 7,
72
      "comment": "",
73
      "patient": 13,
74
      "author": 1,
75
      "created": "2012-11-21T14:28:43.228",
76
      "previous_state": null,
77 77
      "date_selected": "2012-11-21T00:00:00"
78 78
    }
79
  }, 
79
  },
80 80
  {
81
    "pk": 7, 
82
    "model": "dossiers.filestate", 
81
    "pk": 7,
82
    "model": "dossiers.filestate",
83 83
    "fields": {
84
      "status": 3, 
85
      "comment": "", 
86
      "patient": 9, 
87
      "author": 1, 
88
      "created": "2012-11-21T14:30:05.626", 
89
      "previous_state": null, 
84
      "status": 3,
85
      "comment": "",
86
      "patient": 9,
87
      "author": 1,
88
      "created": "2012-11-21T14:30:05.626",
89
      "previous_state": null,
90 90
      "date_selected": "2012-11-21T00:00:00"
91 91
    }
92
  }, 
92
  },
93 93
  {
94
    "pk": 8, 
95
    "model": "dossiers.filestate", 
94
    "pk": 8,
95
    "model": "dossiers.filestate",
96 96
    "fields": {
97
      "status": 1, 
98
      "comment": "ceci est un test", 
99
      "patient": 14, 
100
      "author": 1, 
101
      "created": "2012-11-28T11:28:25.717", 
102
      "previous_state": null, 
97
      "status": 1,
98
      "comment": "ceci est un test",
99
      "patient": 14,
100
      "author": 1,
101
      "created": "2012-11-28T11:28:25.717",
102
      "previous_state": null,
103 103
      "date_selected": "2012-11-28T00:00:00"
104 104
    }
105
  }, 
105
  },
106 106
  {
107
    "pk": 1, 
108
    "model": "dossiers.patientaddress", 
107
    "pk": 1,
108
    "model": "dossiers.patientaddress",
109 109
    "fields": {
110
      "city": "Saint Etienne", 
111
      "fax": "04 77 49 28 91", 
112
      "address_complement": "", 
113
      "phone": "04 77 49 28 90", 
114
      "address": "30 rue de la libert\u00e9", 
110
      "city": "Saint Etienne",
111
      "fax": "04 77 49 28 91",
112
      "address_complement": "",
113
      "phone": "04 77 49 28 90",
114
      "address": "30 rue de la libert\u00e9",
115 115
      "zip_code": "4200"
116 116
    }
117
  }, 
117
  },
118 118
  {
119
    "pk": 2, 
120
    "model": "dossiers.patientaddress", 
119
    "pk": 2,
120
    "model": "dossiers.patientaddress",
121 121
    "fields": {
122
      "city": "Saint-\u00c9tienne", 
123
      "fax": "", 
124
      "address_complement": "", 
125
      "phone": "04 24 42 52 36", 
126
      "address": "42 avenue John Doe", 
122
      "city": "Saint-\u00c9tienne",
123
      "fax": "",
124
      "address_complement": "",
125
      "phone": "04 24 42 52 36",
126
      "address": "42 avenue John Doe",
127 127
      "zip_code": "42000"
128 128
    }
129
  }, 
129
  },
130 130
  {
131
    "pk": 10, 
132
    "model": "dossiers.patientcontact", 
131
    "pk": 10,
132
    "model": "dossiers.patientcontact",
133 133
    "fields": {
134
      "mobile": "0642121674", 
135
      "social_security_id": "2420910236578", 
136
      "email": "jeanne.darc@gmail.com", 
134
      "mobile": "0642121674",
135
      "social_security_id": "2420910236578",
136
      "email": "jeanne.darc@gmail.com",
137 137
      "addresses": [
138 138
        1
139 139
      ]
140 140
    }
141
  }, 
141
  },
142 142
  {
143
    "pk": 8, 
144
    "model": "dossiers.patientcontact", 
143
    "pk": 8,
144
    "model": "dossiers.patientcontact",
145 145
    "fields": {
146
      "mobile": "0654123654", 
147
      "social_security_id": "1424868464768", 
148
      "email": "john.doe@gmail.com", 
146
      "mobile": "0654123654",
147
      "social_security_id": "1424868464768",
148
      "email": "john.doe@gmail.com",
149 149
      "addresses": [
150 150
        1
151 151
      ]
152 152
    }
153
  }, 
153
  },
154 154
  {
155
    "pk": 14, 
156
    "model": "dossiers.patientcontact", 
155
    "pk": 14,
156
    "model": "dossiers.patientcontact",
157 157
    "fields": {
158
      "mobile": "0654123654", 
159
      "social_security_id": "1544868464768", 
160
      "email": "jean.dupond@gmail.com", 
158
      "mobile": "0654123654",
159
      "social_security_id": "1544868464768",
160
      "email": "jean.dupond@gmail.com",
161 161
      "addresses": [
162 162
        2
163 163
      ]
164 164
    }
165
  }, 
165
  },
166 166
  {
167
    "pk": 12, 
168
    "model": "dossiers.patientcontact", 
167
    "pk": 12,
168
    "model": "dossiers.patientcontact",
169 169
    "fields": {
170
      "mobile": "0644452130", 
171
      "social_security_id": "1841853654541", 
172
      "email": "guillaume.bouclier@yahoo.com", 
170
      "mobile": "0644452130",
171
      "social_security_id": "1841853654541",
172
      "email": "guillaume.bouclier@yahoo.com",
173 173
      "addresses": [
174 174
        1
175 175
      ]
176 176
    }
177
  }, 
177
  },
178 178
  {
179
    "pk": 13, 
180
    "model": "dossiers.patientcontact", 
179
    "pk": 13,
180
    "model": "dossiers.patientcontact",
181 181
    "fields": {
182
      "mobile": "0608451237", 
183
      "social_security_id": "1006895123654", 
184
      "email": "andre.hendrickx@toto.com", 
182
      "mobile": "0608451237",
183
      "social_security_id": "1006895123654",
184
      "email": "andre.hendrickx@toto.com",
185 185
      "addresses": [
186 186
        1
187 187
      ]
188 188
    }
189
  }, 
189
  },
190 190
  {
191
    "pk": 9, 
192
    "model": "dossiers.patientcontact", 
191
    "pk": 9,
192
    "model": "dossiers.patientcontact",
193 193
    "fields": {
194
      "mobile": "0654123654", 
195
      "social_security_id": "1180549588157", 
196
      "email": "jack.itchan@hotmail.com", 
194
      "mobile": "0654123654",
195
      "social_security_id": "1180549588157",
196
      "email": "jack.itchan@hotmail.com",
197 197
      "addresses": [
198 198
        1
199 199
      ]
200 200
    }
201
  }, 
201
  },
202 202
  {
203
    "pk": 11, 
204
    "model": "dossiers.patientcontact", 
203
    "pk": 11,
204
    "model": "dossiers.patientcontact",
205 205
    "fields": {
206
      "mobile": "0728452130", 
207
      "social_security_id": "2540913236578", 
208
      "email": "claudia.schiffer@yahoo.com", 
206
      "mobile": "0728452130",
207
      "social_security_id": "2540913236578",
208
      "email": "claudia.schiffer@yahoo.com",
209 209
      "addresses": [
210
        1, 
210
        1,
211 211
        2
212 212
      ]
213 213
    }
214
  }, 
214
  },
215 215
  {
216
    "pk": 8, 
217
    "model": "dossiers.patientrecord", 
216
    "pk": 8,
217
    "model": "dossiers.patientrecord",
218 218
    "fields": {
219
      "last_state": 1, 
220
      "school": 1, 
219
      "last_state": 1,
220
      "school": 1,
221 221
      "addresses": [
222 222
        1
223
      ], 
224
      "service": 1, 
225
      "creator": 1, 
226
      "created": "2012-11-28T11:02:06.292", 
223
      ],
224
      "service": 1,
225
      "creator": 1,
226
      "created": "2012-11-28T11:02:06.292",
227 227
      "contacts": [
228
        1, 
229
        2, 
230
        4, 
228
        1,
229
        2,
230
        4,
231 231
        3
232
      ], 
233
      "birthdate": "1980-10-31", 
234
      "paper_id": "1024", 
232
      ],
233
      "birthdate": "1980-10-31",
234
      "paper_id": "1024",
235 235
      "nationality": "Fran\u00e7ais"
236 236
    }
237
  }, 
237
  },
238 238
  {
239
    "pk": 9, 
240
    "model": "dossiers.patientrecord", 
239
    "pk": 9,
240
    "model": "dossiers.patientrecord",
241 241
    "fields": {
242
      "last_state": 7, 
243
      "school": 1, 
242
      "last_state": 7,
243
      "school": 1,
244 244
      "addresses": [
245 245
        1
246
      ], 
247
      "service": 1, 
248
      "creator": 1, 
249
      "created": "2012-11-28T11:02:06.292", 
246
      ],
247
      "service": 1,
248
      "creator": 1,
249
      "created": "2012-11-28T11:02:06.292",
250 250
      "contacts": [
251
        1, 
252
        2, 
253
        4, 
251
        1,
252
        2,
253
        4,
254 254
        3
255
      ], 
256
      "birthdate": "1988-12-30", 
257
      "paper_id": "45789", 
255
      ],
256
      "birthdate": "1988-12-30",
257
      "paper_id": "45789",
258 258
      "nationality": "Fran\u00e7ais"
259 259
    }
260
  }, 
260
  },
261 261
  {
262
    "pk": 10, 
263
    "model": "dossiers.patientrecord", 
262
    "pk": 10,
263
    "model": "dossiers.patientrecord",
264 264
    "fields": {
265
      "last_state": 3, 
266
      "school": 1, 
265
      "last_state": 3,
266
      "school": 1,
267 267
      "addresses": [
268 268
        1
269
      ], 
270
      "service": 1, 
271
      "creator": 1, 
272
      "created": "2012-11-28T11:02:06.292", 
269
      ],
270
      "service": 1,
271
      "creator": 1,
272
      "created": "2012-11-28T11:02:06.292",
273 273
      "contacts": [
274 274
        2
275
      ], 
276
      "birthdate": "1995-11-21", 
277
      "paper_id": "4243", 
275
      ],
276
      "birthdate": "1995-11-21",
277
      "paper_id": "4243",
278 278
      "nationality": "Fran\u00e7ais"
279 279
    }
280
  }, 
280
  },
281 281
  {
282
    "pk": 11, 
283
    "model": "dossiers.patientrecord", 
282
    "pk": 11,
283
    "model": "dossiers.patientrecord",
284 284
    "fields": {
285
      "last_state": 4, 
286
      "school": 1, 
285
      "last_state": 4,
286
      "school": 1,
287 287
      "addresses": [
288
        1, 
288
        1,
289 289
        2
290
      ], 
291
      "service": 1, 
292
      "creator": 1, 
293
      "created": "2012-11-28T11:02:06.292", 
290
      ],
291
      "service": 1,
292
      "creator": 1,
293
      "created": "2012-11-28T11:02:06.292",
294 294
      "contacts": [
295 295
        2
296
      ], 
297
      "birthdate": "1998-01-21", 
298
      "paper_id": "424243L", 
296
      ],
297
      "birthdate": "1998-01-21",
298
      "paper_id": "424243L",
299 299
      "nationality": "Fran\u00e7ais"
300 300
    }
301
  }, 
301
  },
302 302
  {
303
    "pk": 12, 
304
    "model": "dossiers.patientrecord", 
303
    "pk": 12,
304
    "model": "dossiers.patientrecord",
305 305
    "fields": {
306
      "last_state": 4, 
307
      "school": 1, 
306
      "last_state": 4,
307
      "school": 1,
308 308
      "addresses": [
309 309
        1
310
      ], 
311
      "service": 1, 
312
      "creator": 1, 
313
      "created": "2012-11-28T11:02:06.292", 
310
      ],
311
      "service": 1,
312
      "creator": 1,
313
      "created": "2012-11-28T11:02:06.292",
314 314
      "contacts": [
315
        7, 
315
        7,
316 316
        6
317
      ], 
318
      "birthdate": "1984-11-21", 
319
      "paper_id": "424546", 
317
      ],
318
      "birthdate": "1984-11-21",
319
      "paper_id": "424546",
320 320
      "nationality": "Fran\u00e7ais"
321 321
    }
322
  }, 
322
  },
323 323
  {
324
    "pk": 13, 
325
    "model": "dossiers.patientrecord", 
324
    "pk": 13,
325
    "model": "dossiers.patientrecord",
326 326
    "fields": {
327
      "last_state": 6, 
328
      "school": 1, 
327
      "last_state": 6,
328
      "school": 1,
329 329
      "addresses": [
330 330
        1
331
      ], 
332
      "service": 3, 
333
      "creator": 1, 
334
      "created": "2012-11-28T11:02:06.292", 
331
      ],
332
      "service": 3,
333
      "creator": 1,
334
      "created": "2012-11-28T11:02:06.292",
335 335
      "contacts": [
336 336
        5
337
      ], 
338
      "birthdate": "2000-11-21", 
339
      "paper_id": "425874", 
337
      ],
338
      "birthdate": "2000-11-21",
339
      "paper_id": "425874",
340 340
      "nationality": "Fran\u00e7ais"
341 341
    }
342
  }, 
342
  },
343 343
  {
344
    "pk": 14, 
345
    "model": "dossiers.patientrecord", 
344
    "pk": 14,
345
    "model": "dossiers.patientrecord",
346 346
    "fields": {
347
      "last_state": 8, 
348
      "school": null, 
347
      "last_state": 8,
348
      "school": null,
349 349
      "addresses": [
350 350
        2
351
      ], 
352
      "service": 3, 
353
      "creator": 1, 
354
      "created": "2012-11-28T11:02:06.292", 
351
      ],
352
      "service": 3,
353
      "creator": 1,
354
      "created": "2012-11-28T11:02:06.292",
355 355
      "contacts": [
356 356
        2
357
      ], 
358
      "birthdate": "1989-11-28", 
359
      "paper_id": "123456", 
357
      ],
358
      "birthdate": "1989-11-28",
359
      "paper_id": "123456",
360 360
      "nationality": "Fran\u00e7ais"
361 361
    }
362 362
  }

Also available in: Unified diff