|
@@ -786,6 +786,7 @@ class TestWorkspaceContents(FunctionalTest):
|
786
|
786
|
)
|
787
|
787
|
params = {
|
788
|
788
|
'new_parent_id': '4', # Salads
|
|
789
|
+ 'new_workspace_id': '2',
|
789
|
790
|
}
|
790
|
791
|
params_folder1 = {
|
791
|
792
|
'parent_id': 3,
|
|
@@ -833,7 +834,8 @@ class TestWorkspaceContents(FunctionalTest):
|
833
|
834
|
)
|
834
|
835
|
)
|
835
|
836
|
params = {
|
836
|
|
- 'new_parent_id': '0', # root
|
|
837
|
+ 'new_parent_id': None, # root
|
|
838
|
+ 'new_workspace_id': 2,
|
837
|
839
|
}
|
838
|
840
|
params_folder1 = {
|
839
|
841
|
'parent_id': 3,
|
|
@@ -862,7 +864,7 @@ class TestWorkspaceContents(FunctionalTest):
|
862
|
864
|
assert not [content for content in new_folder1_contents if content['content_id'] == 8] # nopep8
|
863
|
865
|
assert [content for content in new_folder2_contents if content['content_id'] == 8] # nopep8
|
864
|
866
|
assert res.json_body
|
865
|
|
- assert res.json_body['parent_id'] == 0
|
|
867
|
+ assert res.json_body['parent_id'] is None
|
866
|
868
|
assert res.json_body['content_id'] == 8
|
867
|
869
|
assert res.json_body['workspace_id'] == 2
|
868
|
870
|
|
|
@@ -931,6 +933,7 @@ class TestWorkspaceContents(FunctionalTest):
|
931
|
933
|
)
|
932
|
934
|
params = {
|
933
|
935
|
'new_parent_id': '2', # Menus
|
|
936
|
+ 'new_workspace_id': '1',
|
934
|
937
|
}
|
935
|
938
|
params_folder1 = {
|
936
|
939
|
'parent_id': 3,
|
|
@@ -978,7 +981,7 @@ class TestWorkspaceContents(FunctionalTest):
|
978
|
981
|
)
|
979
|
982
|
)
|
980
|
983
|
params = {
|
981
|
|
- 'new_parent_id': '0', # root
|
|
984
|
+ 'new_parent_id': None, # root
|
982
|
985
|
'new_workspace_id': '1',
|
983
|
986
|
}
|
984
|
987
|
params_folder1 = {
|
|
@@ -1008,7 +1011,7 @@ class TestWorkspaceContents(FunctionalTest):
|
1008
|
1011
|
assert not [content for content in new_folder1_contents if content['content_id'] == 8] # nopep8
|
1009
|
1012
|
assert [content for content in new_folder2_contents if content['content_id'] == 8] # nopep8
|
1010
|
1013
|
assert res.json_body
|
1011
|
|
- assert res.json_body['parent_id'] == 0
|
|
1014
|
+ assert res.json_body['parent_id'] is None
|
1012
|
1015
|
assert res.json_body['content_id'] == 8
|
1013
|
1016
|
assert res.json_body['workspace_id'] == 1
|
1014
|
1017
|
|