Construct unit tests for inventory/hard disk long term storage component.
[htsworkflow.git] / htsworkflow / frontend / inventory / fixtures / test_harddisks.json
1 [
2   {
3     "pk": 1, 
4     "model": "inventory.vendor", 
5     "fields": {
6       "url": "http://www.newegg.com/", 
7       "name": "newegg.com"
8     }
9   }, 
10   {
11     "pk": 1, 
12     "model": "inventory.location", 
13     "fields": {
14       "uuid": "e344a4a2522211de99b00015172ce556", 
15       "notes": "", 
16       "location_description": "Office 1", 
17       "name": "Dev Office"
18     }
19   }, 
20   {
21     "pk": 1, 
22     "model": "inventory.iteminfo", 
23     "fields": {
24       "model_id": "WD10EADS-00L5B1", 
25       "vendor": 1, 
26       "lot_number": "", 
27       "url": "http://www.newegg.com/Product/Product.aspx?Item=N82E16822136317&Tpk=WD10EADS", 
28       "warranty_months": 24, 
29       "notes": "", 
30       "part_number": "", 
31       "purchase_date": "2009-05-19", 
32       "qty_purchased": 17
33     }
34   }, 
35   {
36     "pk": 1, 
37     "model": "inventory.itemtype", 
38     "fields": {
39       "name": "Hard Drive", 
40       "description": null
41     }
42   }, 
43   {
44     "pk": 1, 
45     "model": "inventory.itemstatus", 
46     "fields": {
47       "notes": "", 
48       "name": "Used"
49     }
50   }, 
51   {
52     "pk": 2, 
53     "model": "inventory.itemstatus", 
54     "fields": {
55       "notes": "", 
56       "name": "Unused"
57     }
58   }, 
59   {
60     "pk": 1, 
61     "model": "inventory.item", 
62     "fields": {
63       "status": null, 
64       "modified_date": "2009-08-10 16:58:44", 
65       "uuid": "8a90b6ce522311de99b00015172ce556", 
66       "barcode_id": "WCAU49183397", 
67       "notes": "", 
68       "item_info": 1, 
69       "force_use_uuid": false, 
70       "item_type": 1, 
71       "location": 1, 
72       "creation_date": "2009-06-05 15:52:26"
73     }
74   }, 
75   {
76     "pk": 2, 
77     "model": "inventory.item", 
78     "fields": {
79       "status": null, 
80       "modified_date": "2009-06-16 11:38:24", 
81       "uuid": "b0792d425aa411de99b00015172ce556", 
82       "barcode_id": "WCAU49042470", 
83       "notes": "", 
84       "item_info": 1, 
85       "force_use_uuid": false, 
86       "item_type": 1, 
87       "location": 1, 
88       "creation_date": "2009-06-16 11:37:04"
89     }
90   }, 
91   {
92     "pk": 1, 
93     "model": "inventory.printertemplate", 
94     "fields": {
95       "default": false, 
96       "item_type": 1, 
97       "printer": 2, 
98       "template": "^FX=========================\r\n^FX 3\"x3\" Label\r\n^FX=========================\r\n^XA\r\n\r\n\r\n^FX======== Left Side ===========\r\n\r\n^FX------------\r\n^FX ^LH changes the 0,0 point of all subsequent location references\r\n^FX------------\r\n\r\n^LH0,50\r\n\r\n^FX ---Header---\r\n\r\n^FO25,0\r\n^CF0,50\r\n^FB250,2,,C\r\n^FD{{ item.barcode_id }}^FS\r\n\r\n^FX ---Column 1: Flowcells---\r\n\r\n^FX-----------------\r\n^FX FB command for automatic text formatting:\r\n^FX ^FB[dot width of area], [max # of lines], [change line spacing], [justification: L, C, R, J], [hanging indent]\r\n^FX-----------------\r\n\r\n^CF0,30,30\r\n^FO75,125\r\n^FB275,19,,L\r\n^FD{% for flowcell in flowcell_id_list %}{{ flowcell }}{% if not forloop.last %}\\&{% endif %}{% endfor %}^FS\r\n^FX ---Date---\r\n\r\n^FO0,725\r\n^CF0,35\r\n^FB300,2,,C\r\n^FD{{ oldest_rundate|date:\"YMd\" }} - {{ latest_rundate|date:\"YMd\" }}^FS\r\n\r\n^FX ---Barcode---\r\n\r\n^FO135,795\r\n^BXN,3,200^FDinvb|{{ item.barcode_id }}^FS\r\n\r\n^FX======== Right Side ===========\r\n\r\n^LH300,60\r\n\r\n^FX ---Header---\r\n\r\n^FO0,0\r\n^CF0,50\r\n^FB600,2,,C\r\n^FD{{ barcode_id }}^FS\r\n\r\n^FX ---Dividing line---\r\n\r\n^FX---------------\r\n^FX GB command:\r\n^FX ^GB[box width], [box height], [border thickness], [color: B, W], [corner rounding: 0-8]^FS\r\n^FX---------------\r\n\r\n^FO0,100\r\n^GB0,600,10^FS\r\n\r\n^FX ---Column 2: Libraries 1-20---\r\n\r\n^CF0,30,30\r\n^FO75,100\r\n^FB100,20,,L\r\n^FD{% for lib_id in library_id_list_1_to_20 %}{{ lib_id }}{% if not forloop.last %}\\&{% endif %}{% endfor %}^FS\r\n\r\n^FX ---Column 3: Libraries 21-40---\r\n\r\n^CF0,30,30\r\n^FO200,100\r\n^FB100,20,,L\r\n^FD{% for lib_id in library_id_list_21_to_40 %}{{ lib_id }}{% if not forloop.last %}\\&{% endif %}{% endfor %}^FS\r\n\r\n^FX ---Column 4: Libraries 41-60---\r\n\r\n^CF0,30,30\r\n^FO325,100\r\n^FB100,20,,L\r\n^FD{% for lib_id in library_id_list_41_to_60 %}{{ lib_id }}{% if not forloop.last %}\\&{% endif %}{% endfor %}^FS\r\n\r\n^FX ---Column 5: Libraries 61-80---\r\n\r\n^CF0,30,30\r\n^FO450,100\r\n^FB100,20,,L\r\n^FD{% for lib_id in library_id_list_61_to_80 %}{{ lib_id }}{% if not forloop.last %}\\&{% endif %}{% endfor %}^FS\r\n\r\n^FX ---Date---\r\n\r\n^FO0,715\r\n^CF0,35\r\n^FB600,2,,C\r\n^FDRun Dates: {{ oldest_rundate|date:\"YMd\" }}-{{ latest_rundate|date:\"YMd\" }}^FS\r\n\r\n^FX ---Barcode---\r\n\r\n^FO255,785\r\n^BXN,3,200^FDinvb|{{ item.barcode_id }}^FS\r\n\r\n^LH0,0\r\n^FX ---End---\r\n^XZ\r\n"
99     }
100   }, 
101   {
102     "pk": 2, 
103     "model": "inventory.printertemplate", 
104     "fields": {
105       "default": true, 
106       "item_type": 2, 
107       "printer": 1, 
108       "template": "^FX=========================\r\n^FX Harddrive Location Tracking Label\r\n^FX 300x375 dots\r\n^FX=========================\r\n\r\n^XA\r\n^LH 0,25\r\n\r\n^FO0,0\r\n^CF0,35\r\n^FB375,1,,C\r\n^FD{{ item.item_type.name }}:^FS\r\n\r\n^FX -------Text contains HD serial #-------------\r\n^FO15,75\r\n^CF0,42\r\n^FB325,3,,C\r\n^FD{% if use_uuid %}{{ item.uuid }}{% else %}{{ item.barcode_id }}{% endif %}^FS\r\n\r\n^FX -------Barcode contains HD serial #-----------\r\n^FO150,200\r\n^BXN,3,200\r\n^FD{% if use_uuid %}invu|{{ item.uuid }}{% else %}invb|{{ item.barcode_id }}{% endif %}^FS\r\n\r\n^XZ\r\n"
109     }
110   }, 
111   {
112     "pk": 3, 
113     "model": "inventory.printertemplate", 
114     "fields": {
115       "default": false, 
116       "item_type": 6, 
117       "printer": 1, 
118       "template": "^XA\r\n\r\n^FX ---SIDE LABEL---\r\n^LH 190,40\r\n^CF 0,30\r\n\r\n^FX------Sideways ID------\r\n^FO 0,25\r\n^TB R,100,40\r\n^FD{{ library.id }}^FS\r\n^FX------Sideways Line------\r\n^FO 50,0\r\n^GB 5,200,5^FS\r\n\r\n^FX-------Name----------\r\n^FO 65,20\r\n^FB 325,4\r\n^FD{{ library.library_name }}^FS\r\n\r\n^FX ---TOP LABEL---\r\n^LH 12,28\r\n^CF 0,30\r\n\r\n^FX----ID #----\r\n^FO 5,25\r\n^FB 145,1,,C\r\n^FD{{ library.id }}^FS\r\n\r\n^FX----Name----\r\n^CF 0,16\r\n^FO 13,47\r\n^TB N,130,30\r\n^FD{{ library.library_name }}^FS\r\n\r\n^FX--------Barcode--------\r\n^FO 50,80\r\n^BXN ,3,200\r\n^FDl|0000000{{ library.id }}|woldlab^FS\r\n\r\n{% if not library.hidden %}\r\n^FX-----Border-------\r\n^FO 0,0\r\n^GC 150,10\r\n^FX ---End---\r\n{% endif %}\r\n^XZ\r\n"
119     }
120   }, 
121   {
122     "pk": 1, 
123     "model": "inventory.longtermstorage", 
124     "fields": {
125       "libraries": [
126         "10001", 
127         "10002", 
128         "10003"
129       ], 
130       "modified_date": "2009-06-01 00:00:00", 
131       "storage_devices": [
132         1
133       ], 
134       "flowcell": 1,
135       "creation_date": "2009-06-01 00:00:00"
136     }
137   },
138   {
139     "pk": 2, 
140     "model": "inventory.longtermstorage", 
141     "fields": {
142       "libraries": [
143         "10001", 
144         "10002", 
145         "10003"
146       ], 
147       "modified_date": "2009-06-01 00:00:00", 
148       "storage_devices": [
149         1
150       ], 
151       "flowcell": 2,
152       "creation_date": "2009-06-01 00:00:00"
153     }
154   },
155  {"pk": 1, "model": "experiments.flowcell", 
156   "fields": {
157       "paired_end": true, 
158       "run_date": "2009-09-11 22:12:13", 
159       "read_length": 75, 
160       "notes": "",
161       "advanced_run": false,
162       "control_lane": 2,
163       "flowcell_id": "11ONEAAXX"
164       }
165   }, 
166  {"pk": 2, "model": "experiments.flowcell", 
167   "fields": {
168       "paired_end": false, 
169       "run_date": "2010-09-11 22:12:13", 
170       "read_length": 75, 
171       "notes": "",
172       "advanced_run": false,
173       "control_lane": 2,
174       "flowcell_id": "22TWOAAXX"
175       }
176   }, 
177   {"pk": "10001", "model": "samples.library", 
178         "fields": {
179             "ten_nM_dilution": false, 
180             "gel_cut_size": 400, 
181             "library_name": "10001", 
182             "creation_date": "2009-07-21", 
183             "cell_line": 1, 
184             "library_species": 2, 
185             "library_type": null, 
186             "made_by": "Igor", 
187             "affiliations": [
188                 1
189             ], 
190             "replicate": 1, 
191             "condition": 1, 
192             "hidden": false, 
193             "stopping_point": "Done", 
194             "tags": [], 
195             "made_for": "Test", 
196             "amplified_from_sample": null, 
197             "notes": "", 
198             "undiluted_concentration": "1", 
199             "successful_pM": null, 
200             "experiment_type": 10, 
201             "antibody": null
202         }
203     }, 
204   {"pk": "10002", "model": "samples.library", 
205         "fields": {
206             "ten_nM_dilution": false, 
207             "gel_cut_size": 400, 
208             "library_name": "10002", 
209             "creation_date": "2009-07-21", 
210             "cell_line": 1, 
211             "library_species": 2, 
212             "library_type": null, 
213             "made_by": "Igor", 
214             "affiliations": [
215                 1
216             ], 
217             "replicate": 1, 
218             "condition": 1, 
219             "hidden": false, 
220             "stopping_point": "Done", 
221             "tags": [], 
222             "made_for": "Test", 
223             "amplified_from_sample": null, 
224             "notes": "", 
225             "undiluted_concentration": "1", 
226             "successful_pM": null, 
227             "experiment_type": 10, 
228             "antibody": null
229         }
230     }, 
231   {"pk": "10003", "model": "samples.library", 
232         "fields": {
233             "ten_nM_dilution": false, 
234             "gel_cut_size": 400, 
235             "library_name": "10003", 
236             "creation_date": "2009-07-21", 
237             "cell_line": 1, 
238             "library_species": 2, 
239             "library_type": null, 
240             "made_by": "Igor", 
241             "affiliations": [
242                 1
243             ], 
244             "replicate": 1, 
245             "condition": 1, 
246             "hidden": false, 
247             "stopping_point": "Done", 
248             "tags": [], 
249             "made_for": "Test", 
250             "amplified_from_sample": null, 
251             "notes": "", 
252             "undiluted_concentration": "1", 
253             "successful_pM": null, 
254             "experiment_type": 10, 
255             "antibody": null
256         }
257     }, 
258   {"pk": 1, "model": "experiments.lane",
259    "fields": {
260        "comment": "10001 lane 1",
261        "library": "10001",
262        "cluster_estimate": 100000,
263        "flowcell": 1,
264        "lane_number": 1,
265        "pM": "8"
266        }
267    }, 
268   {"pk": 2, "model": "experiments.lane",
269    "fields": {
270        "comment": "10002 lane 2",
271        "library": "10002",
272        "cluster_estimate": 100000,
273        "flowcell": 1,
274        "lane_number": 2,
275        "pM": "8"
276        }
277    }, 
278   {"pk": 3, "model": "experiments.lane",
279    "fields": {
280        "comment": "10003 lane 3",
281        "library": "10003",
282        "cluster_estimate": 100000,
283        "flowcell": 1,
284        "lane_number": 3,
285        "pM": "8"
286        }
287    }, 
288   {"pk": 4, "model": "experiments.lane",
289    "fields": {
290        "comment": "10004 lane 4",
291        "library": "10001",
292        "cluster_estimate": 100000,
293        "flowcell": 2,
294        "lane_number": 4,
295        "pM": "8"
296        }
297    }, 
298   {"pk": 5, "model": "experiments.lane",
299    "fields": {
300        "comment": "10001 lane 1",
301        "library": "10001",
302        "cluster_estimate": 100000,
303        "flowcell": 2,
304        "lane_number": 1,
305        "pM": "8"
306        }
307    }, 
308   {"pk": 6, "model": "experiments.lane",
309    "fields": {
310        "comment": "10001 lane 1",
311        "library": "10003",
312        "cluster_estimate": 100000,
313        "flowcell": 2,
314        "lane_number": 2,
315        "pM": "8"
316        }
317    }, 
318   {"pk": 7, "model": "experiments.lane",
319    "fields": {
320        "comment": "10003 lane 8",
321        "library": "10003",
322        "cluster_estimate": 100000,
323        "flowcell": 2,
324        "lane_number": 8,
325        "pM": "8"
326        }
327    }, 
328   {"pk": 8, "model": "experiments.lane",
329    "fields": {
330        "comment": "10002 lane 8",
331        "library": "10001",
332        "cluster_estimate": 100000,
333        "flowcell": 2,
334        "lane_number": 8,
335        "pM": "8"
336        }
337    }
338 ]