|
@@ -41,6 +41,7 @@ class TestWorkspaceEndpoint(FunctionalTest):
|
41
|
41
|
assert workspace['slug'] == 'business'
|
42
|
42
|
assert workspace['label'] == 'Business'
|
43
|
43
|
assert workspace['description'] == 'All importants documents'
|
|
44
|
+ assert workspace['is_deleted'] is False
|
44
|
45
|
assert len(workspace['sidebar_entries']) == 5
|
45
|
46
|
|
46
|
47
|
# TODO - G.M - 2018-08-02 - Better test for sidebar entry, make it
|
|
@@ -106,6 +107,7 @@ class TestWorkspaceEndpoint(FunctionalTest):
|
106
|
107
|
assert workspace['slug'] == 'business'
|
107
|
108
|
assert workspace['label'] == 'Business'
|
108
|
109
|
assert workspace['description'] == 'All importants documents'
|
|
110
|
+ assert workspace['is_deleted'] is False
|
109
|
111
|
assert len(workspace['sidebar_entries']) == 5
|
110
|
112
|
|
111
|
113
|
# modify workspace
|
|
@@ -120,6 +122,7 @@ class TestWorkspaceEndpoint(FunctionalTest):
|
120
|
122
|
assert workspace['slug'] == 'superworkspace'
|
121
|
123
|
assert workspace['label'] == 'superworkspace'
|
122
|
124
|
assert workspace['description'] == 'mysuperdescription'
|
|
125
|
+ assert workspace['is_deleted'] is False
|
123
|
126
|
assert len(workspace['sidebar_entries']) == 5
|
124
|
127
|
|
125
|
128
|
# after
|
|
@@ -133,6 +136,7 @@ class TestWorkspaceEndpoint(FunctionalTest):
|
133
|
136
|
assert workspace['slug'] == 'superworkspace'
|
134
|
137
|
assert workspace['label'] == 'superworkspace'
|
135
|
138
|
assert workspace['description'] == 'mysuperdescription'
|
|
139
|
+ assert workspace['is_deleted'] is False
|
136
|
140
|
assert len(workspace['sidebar_entries']) == 5
|
137
|
141
|
|
138
|
142
|
def test_api__update_workspace__err_400__empty_label(self) -> None:
|