|
@@ -243,7 +243,7 @@ class TestWorkspaceContents(FunctionalTest):
|
243
|
243
|
assert content['is_archived'] is False
|
244
|
244
|
assert content['is_deleted'] is False
|
245
|
245
|
assert content['label'] == 'Tools'
|
246
|
|
- assert content['parent_id'] == 0
|
|
246
|
+ assert content['parent_id'] is None
|
247
|
247
|
assert content['show_in_ui'] is True
|
248
|
248
|
assert content['slug'] == 'tools'
|
249
|
249
|
assert content['status'] == 'open'
|
|
@@ -254,7 +254,7 @@ class TestWorkspaceContents(FunctionalTest):
|
254
|
254
|
assert content['is_archived'] is False
|
255
|
255
|
assert content['is_deleted'] is False
|
256
|
256
|
assert content['label'] == 'Menus'
|
257
|
|
- assert content['parent_id'] == 0
|
|
257
|
+ assert content['parent_id'] is None
|
258
|
258
|
assert content['show_in_ui'] is True
|
259
|
259
|
assert content['slug'] == 'menus'
|
260
|
260
|
assert content['status'] == 'open'
|
|
@@ -304,7 +304,7 @@ class TestWorkspaceContents(FunctionalTest):
|
304
|
304
|
assert content['is_archived'] is False
|
305
|
305
|
assert content['is_deleted'] is False
|
306
|
306
|
assert content['label'] == 'New Fruit Salad'
|
307
|
|
- assert content['parent_id'] == 0
|
|
307
|
+ assert content['parent_id'] is None
|
308
|
308
|
assert content['show_in_ui'] is True
|
309
|
309
|
assert content['slug'] == 'new-fruit-salad'
|
310
|
310
|
assert content['status'] == 'open'
|
|
@@ -317,7 +317,7 @@ class TestWorkspaceContents(FunctionalTest):
|
317
|
317
|
assert content['is_archived'] is True
|
318
|
318
|
assert content['is_deleted'] is False
|
319
|
319
|
assert content['label'].startswith('Fruit Salad')
|
320
|
|
- assert content['parent_id'] == 0
|
|
320
|
+ assert content['parent_id'] is None
|
321
|
321
|
assert content['show_in_ui'] is True
|
322
|
322
|
assert content['slug'].startswith('fruit-salad')
|
323
|
323
|
assert content['status'] == 'open'
|
|
@@ -330,7 +330,7 @@ class TestWorkspaceContents(FunctionalTest):
|
330
|
330
|
assert content['is_archived'] is False
|
331
|
331
|
assert content['is_deleted'] is True
|
332
|
332
|
assert content['label'].startswith('Bad Fruit Salad')
|
333
|
|
- assert content['parent_id'] == 0
|
|
333
|
+ assert content['parent_id'] is None
|
334
|
334
|
assert content['show_in_ui'] is True
|
335
|
335
|
assert content['slug'].startswith('bad-fruit-salad')
|
336
|
336
|
assert content['status'] == 'open'
|
|
@@ -367,7 +367,7 @@ class TestWorkspaceContents(FunctionalTest):
|
367
|
367
|
assert content['is_archived'] is False
|
368
|
368
|
assert content['is_deleted'] is False
|
369
|
369
|
assert content['label'] == 'New Fruit Salad'
|
370
|
|
- assert content['parent_id'] == 0
|
|
370
|
+ assert content['parent_id'] is None
|
371
|
371
|
assert content['show_in_ui'] is True
|
372
|
372
|
assert content['slug'] == 'new-fruit-salad'
|
373
|
373
|
assert content['status'] == 'open'
|
|
@@ -403,7 +403,7 @@ class TestWorkspaceContents(FunctionalTest):
|
403
|
403
|
assert content['is_archived'] is True
|
404
|
404
|
assert content['is_deleted'] is False
|
405
|
405
|
assert content['label'].startswith('Fruit Salad')
|
406
|
|
- assert content['parent_id'] == 0
|
|
406
|
+ assert content['parent_id'] is None
|
407
|
407
|
assert content['show_in_ui'] is True
|
408
|
408
|
assert content['slug'].startswith('fruit-salad')
|
409
|
409
|
assert content['status'] == 'open'
|
|
@@ -441,7 +441,7 @@ class TestWorkspaceContents(FunctionalTest):
|
441
|
441
|
assert content['is_archived'] is False
|
442
|
442
|
assert content['is_deleted'] is True
|
443
|
443
|
assert content['label'].startswith('Bad Fruit Salad')
|
444
|
|
- assert content['parent_id'] == 0
|
|
444
|
+ assert content['parent_id'] is None
|
445
|
445
|
assert content['show_in_ui'] is True
|
446
|
446
|
assert content['slug'].startswith('bad-fruit-salad')
|
447
|
447
|
assert content['status'] == 'open'
|
|
@@ -757,7 +757,7 @@ class TestWorkspaceContents(FunctionalTest):
|
757
|
757
|
assert res.json_body['is_deleted'] is False
|
758
|
758
|
assert res.json_body['workspace_id'] == 1
|
759
|
759
|
assert res.json_body['slug'] == 'genericcreatedcontent'
|
760
|
|
- assert res.json_body['parent_id'] == 0
|
|
760
|
+ assert res.json_body['parent_id'] is None
|
761
|
761
|
assert res.json_body['show_in_ui'] is True
|
762
|
762
|
assert res.json_body['sub_content_types']
|
763
|
763
|
params_active = {
|