Revision 3e3db819
vigigraph: correction des TU
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@6812 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigigraph/tests/functional/test_graph_selection_form.py | ||
---|---|---|
129 | 129 |
# de graphes retournée contient bien 'graphgroup1' |
130 | 130 |
self.assertEqual( |
131 | 131 |
json, { |
132 |
'leaves': [], |
|
133 |
'groups': [{'id': graphgroup1.idgroup, 'name': graphgroup1.name}] |
|
132 |
'items': [], |
|
133 |
'groups': [{'id': graphgroup1.idgroup, |
|
134 |
'name': graphgroup1.name, |
|
135 |
'type': 'group'}] |
|
134 | 136 |
} |
135 | 137 |
) |
136 | 138 |
|
... | ... | |
145 | 147 |
# de graphes retournée contient bien 'graphgroup2' |
146 | 148 |
self.assertEqual( |
147 | 149 |
json, { |
148 |
'leaves': [], |
|
149 |
'groups': [{'id': graphgroup2.idgroup, 'name': graphgroup2.name}] |
|
150 |
'items': [], |
|
151 |
'groups': [{'id': graphgroup2.idgroup, |
|
152 |
'name': graphgroup2.name, |
|
153 |
'type': 'group'}] |
|
150 | 154 |
} |
151 | 155 |
) |
152 | 156 |
|
... | ... | |
161 | 165 |
# de graphes retournée contient bien 'graphgroup1' |
162 | 166 |
self.assertEqual( |
163 | 167 |
json, { |
164 |
'leaves': [], |
|
165 |
'groups': [{'id': graphgroup1.idgroup, 'name': graphgroup1.name}] |
|
168 |
'items': [], |
|
169 |
'groups': [{'id': graphgroup1.idgroup, |
|
170 |
'name': graphgroup1.name, |
|
171 |
'type': 'group'}] |
|
166 | 172 |
} |
167 | 173 |
) |
168 | 174 |
|
... | ... | |
177 | 183 |
# de graphes retournée contient bien 'graphgroup2' |
178 | 184 |
self.assertEqual( |
179 | 185 |
json, { |
180 |
'leaves': [], |
|
181 |
'groups': [{'id': graphgroup2.idgroup, 'name': graphgroup2.name}] |
|
186 |
'items': [], |
|
187 |
'groups': [{'id': graphgroup2.idgroup, |
|
188 |
'name': graphgroup2.name, |
|
189 |
'type': 'group'}] |
|
182 | 190 |
} |
183 | 191 |
) |
184 | 192 |
|
... | ... | |
193 | 201 |
# de graphes retournée contient bien 'graphgroup2' |
194 | 202 |
self.assertEqual( |
195 | 203 |
json, { |
196 |
'leaves': [], |
|
197 |
'groups': [{'id': graphgroup2.idgroup, 'name': graphgroup2.name}] |
|
204 |
'items': [], |
|
205 |
'groups': [{'id': graphgroup2.idgroup, |
|
206 |
'name': graphgroup2.name, |
|
207 |
'type': 'group'}] |
|
198 | 208 |
} |
199 | 209 |
) |
200 | 210 |
|
... | ... | |
209 | 219 |
# de graphes retournée contient bien 'graphgroup3' |
210 | 220 |
self.assertEqual( |
211 | 221 |
json, { |
212 |
'leaves': [], |
|
213 |
'groups': [{'id': graphgroup3.idgroup, 'name': graphgroup3.name}] |
|
222 |
'items': [], |
|
223 |
'groups': [{'id': graphgroup3.idgroup, |
|
224 |
'name': graphgroup3.name, |
|
225 |
'type': 'group'}] |
|
214 | 226 |
} |
215 | 227 |
) |
216 | 228 |
|
... | ... | |
373 | 385 |
# graphes retournée contient 'graph1' |
374 | 386 |
self.assertEqual( |
375 | 387 |
json, { |
376 |
'leaves': [{'id': graph1.idgraph, 'name': graph1.name}], |
|
388 |
'items': [{'id': graph1.idgraph, |
|
389 |
'name': graph1.name, |
|
390 |
'type': 'item'}], |
|
377 | 391 |
'groups': [] |
378 | 392 |
} |
379 | 393 |
) |
... | ... | |
390 | 404 |
# graphes retournée contient 'graph2' |
391 | 405 |
self.assertEqual( |
392 | 406 |
json, { |
393 |
'leaves': [{'id': graph2.idgraph, 'name': graph2.name}], |
|
407 |
'items': [{'id': graph2.idgraph, |
|
408 |
'name': graph2.name, |
|
409 |
'type': 'item'}], |
|
394 | 410 |
'groups': [] |
395 | 411 |
} |
396 | 412 |
) |
... | ... | |
407 | 423 |
# graphes retournée contient 'graph1' |
408 | 424 |
self.assertEqual( |
409 | 425 |
json, { |
410 |
'leaves': [{'id': graph1.idgraph, 'name': graph1.name}], |
|
426 |
'items': [{'id': graph1.idgraph, |
|
427 |
'name': graph1.name, |
|
428 |
'type': 'item'}], |
|
411 | 429 |
'groups': [] |
412 | 430 |
} |
413 | 431 |
) |
... | ... | |
424 | 442 |
# graphes retournée contient 'graph2' |
425 | 443 |
self.assertEqual( |
426 | 444 |
json, { |
427 |
'leaves': [{'id': graph2.idgraph, 'name': graph2.name}], |
|
445 |
'items': [{'id': graph2.idgraph, |
|
446 |
'name': graph2.name, |
|
447 |
'type': 'item'}], |
|
428 | 448 |
'groups': [] |
429 | 449 |
} |
430 | 450 |
) |
... | ... | |
441 | 461 |
# graphes retournée contient 'graph2' |
442 | 462 |
self.assertEqual( |
443 | 463 |
json, { |
444 |
'leaves': [{'id': graph2.idgraph, 'name': graph2.name}], |
|
464 |
'items': [{'id': graph2.idgraph, |
|
465 |
'name': graph2.name, |
|
466 |
'type': 'item'}], |
|
445 | 467 |
'groups': [] |
446 | 468 |
} |
447 | 469 |
) |
... | ... | |
458 | 480 |
# graphes retournée contient 'graph3' |
459 | 481 |
self.assertEqual( |
460 | 482 |
json, { |
461 |
'leaves': [{'id': graph3.idgraph, 'name': graph3.name}], |
|
483 |
'items': [{'id': graph3.idgraph, |
|
484 |
'name': graph3.name, |
|
485 |
'type': 'item'}], |
|
462 | 486 |
'groups': [] |
463 | 487 |
} |
464 | 488 |
) |
Also available in: Unified diff