Commit 6a16728
committed
Test handling of unset transitive link field.
Test changeset p5b66c480f71f by adding a new link to issue to the user class.
Without the changeset, modifying testGetTransitive to include:
cgi.MiniFieldStorage('@fields', 'status,assignedto.issue')
results in:
{'error': {'status': 404, 'msg': IndexError('no such user None',)}}
(Note this is the wrong error message, it's not user that is None,
it's None value for the issue link in the user object.)
With the changeset and modfying expected output to include the new
field, I get a passing test with output like:
{ 'id': '2',
'link': base_path + 'issue/2',
'assignedto.issue': None,
'status':
{ 'id': '10',
'link': base_path + 'status/10'
}
},
Changing the schema also requires changes to the etag testing code
since it uses the user object and the representation has changed.1 parent a61da93 commit 6a16728
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| |||
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
| 363 | + | |
362 | 364 | | |
363 | 365 | | |
364 | 366 | | |
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
| 371 | + | |
369 | 372 | | |
370 | 373 | | |
371 | 374 | | |
| |||
376 | 379 | | |
377 | 380 | | |
378 | 381 | | |
379 | | - | |
| 382 | + | |
380 | 383 | | |
381 | 384 | | |
382 | 385 | | |
| |||
1139 | 1142 | | |
1140 | 1143 | | |
1141 | 1144 | | |
1142 | | - | |
| 1145 | + | |
1143 | 1146 | | |
1144 | 1147 | | |
1145 | 1148 | | |
1146 | 1149 | | |
1147 | 1150 | | |
1148 | 1151 | | |
1149 | | - | |
| 1152 | + | |
1150 | 1153 | | |
1151 | 1154 | | |
1152 | 1155 | | |
1153 | 1156 | | |
1154 | 1157 | | |
1155 | 1158 | | |
1156 | 1159 | | |
1157 | | - | |
| 1160 | + | |
1158 | 1161 | | |
1159 | 1162 | | |
1160 | 1163 | | |
| |||
0 commit comments