|
@@ -807,7 +807,7 @@ class TestWorkspaceContents(FunctionalTest):
|
807
|
807
|
res = self.testapp.put_json(
|
808
|
808
|
'/api/v2/workspaces/2/contents/8/move',
|
809
|
809
|
params=params,
|
810
|
|
- status=200
|
|
810
|
+ status=204
|
811
|
811
|
)
|
812
|
812
|
new_folder1_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_folder1, status=200).json_body # nopep8
|
813
|
813
|
new_folder2_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_folder2, status=200).json_body # nopep8
|
|
@@ -846,7 +846,7 @@ class TestWorkspaceContents(FunctionalTest):
|
846
|
846
|
res = self.testapp.put_json(
|
847
|
847
|
# INFO - G.M - 2018-06-163 - delete Apple_Pie
|
848
|
848
|
'/api/v2/workspaces/2/contents/8/delete',
|
849
|
|
- status=200
|
|
849
|
+ status=204
|
850
|
850
|
)
|
851
|
851
|
new_active_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_active, status=200).json_body # nopep8
|
852
|
852
|
new_deleted_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_deleted, status=200).json_body # nopep8
|
|
@@ -883,7 +883,7 @@ class TestWorkspaceContents(FunctionalTest):
|
883
|
883
|
assert not [content for content in archived_contents if content['content_id'] == 8] # nopep8
|
884
|
884
|
res = self.testapp.put_json(
|
885
|
885
|
'/api/v2/workspaces/2/contents/8/archive',
|
886
|
|
- status=200
|
|
886
|
+ status=204
|
887
|
887
|
)
|
888
|
888
|
new_active_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_active, status=200).json_body # nopep8
|
889
|
889
|
new_archived_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_archived, status=200).json_body # nopep8
|
|
@@ -920,7 +920,7 @@ class TestWorkspaceContents(FunctionalTest):
|
920
|
920
|
assert [content for content in deleted_contents if content['content_id'] == 14] # nopep8
|
921
|
921
|
res = self.testapp.put_json(
|
922
|
922
|
'/api/v2/workspaces/2/contents/14/undelete',
|
923
|
|
- status=200
|
|
923
|
+ status=204
|
924
|
924
|
)
|
925
|
925
|
new_active_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_active, status=200).json_body # nopep8
|
926
|
926
|
new_deleted_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_deleted, status=200).json_body # nopep8
|
|
@@ -957,7 +957,7 @@ class TestWorkspaceContents(FunctionalTest):
|
957
|
957
|
assert [content for content in archived_contents if content['content_id'] == 13] # nopep8
|
958
|
958
|
res = self.testapp.put_json(
|
959
|
959
|
'/api/v2/workspaces/2/contents/13/unarchive',
|
960
|
|
- status=200
|
|
960
|
+ status=204
|
961
|
961
|
)
|
962
|
962
|
new_active_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_active, status=200).json_body # nopep8
|
963
|
963
|
new_archived_contents = self.testapp.get('/api/v2/workspaces/2/contents', params=params_archived, status=200).json_body # nopep8
|