|
@@ -28,7 +28,7 @@ class TestCommentsEndpoint(FunctionalTest):
|
28
|
28
|
comment = res.json_body[0]
|
29
|
29
|
assert comment['content_id'] == 18
|
30
|
30
|
assert comment['parent_id'] == 7
|
31
|
|
- assert comment['raw_content'] == '<p> What is for you the best cake ever ? </br> I personnally vote for Chocolate cupcake !</p>' # nopep8
|
|
31
|
+ assert comment['raw_content'] == '<p>What is for you the best cake ever? </br> I personnally vote for Chocolate cupcake!</p>' # nopep8
|
32
|
32
|
assert comment['author']
|
33
|
33
|
assert comment['author']['user_id'] == 1
|
34
|
34
|
# TODO - G.M - 2018-06-172 - [avatar] setup avatar url
|
|
@@ -38,7 +38,7 @@ class TestCommentsEndpoint(FunctionalTest):
|
38
|
38
|
comment = res.json_body[1]
|
39
|
39
|
assert comment['content_id'] == 19
|
40
|
40
|
assert comment['parent_id'] == 7
|
41
|
|
- assert comment['raw_content'] == '<p>What about Apple Pie ? There are Awesome !</p>' # nopep8
|
|
41
|
+ assert comment['raw_content'] == '<p>What about Apple Pie? There are Awesome!</p>' # nopep8
|
42
|
42
|
assert comment['author']
|
43
|
43
|
assert comment['author']['user_id'] == 3
|
44
|
44
|
# TODO - G.M - 2018-06-172 - [avatar] setup avatar url
|
|
@@ -71,7 +71,7 @@ class TestCommentsEndpoint(FunctionalTest):
|
71
|
71
|
)
|
72
|
72
|
)
|
73
|
73
|
params = {
|
74
|
|
- 'raw_content': 'I strongly disagree, Tiramisu win !'
|
|
74
|
+ 'raw_content': 'I strongly disagree, Tiramisu win!'
|
75
|
75
|
}
|
76
|
76
|
res = self.testapp.post_json(
|
77
|
77
|
'/api/v2/workspaces/2/contents/7/comments',
|
|
@@ -81,7 +81,7 @@ class TestCommentsEndpoint(FunctionalTest):
|
81
|
81
|
comment = res.json_body
|
82
|
82
|
assert comment['content_id']
|
83
|
83
|
assert comment['parent_id'] == 7
|
84
|
|
- assert comment['raw_content'] == 'I strongly disagree, Tiramisu win !'
|
|
84
|
+ assert comment['raw_content'] == 'I strongly disagree, Tiramisu win!'
|
85
|
85
|
assert comment['author']
|
86
|
86
|
assert comment['author']['user_id'] == 1
|
87
|
87
|
# TODO - G.M - 2018-06-172 - [avatar] setup avatar url
|
|
@@ -110,7 +110,7 @@ class TestCommentsEndpoint(FunctionalTest):
|
110
|
110
|
comment = res.json_body[0]
|
111
|
111
|
assert comment['content_id'] == 18
|
112
|
112
|
assert comment['parent_id'] == 7
|
113
|
|
- assert comment['raw_content'] == '<p> What is for you the best cake ever ? </br> I personnally vote for Chocolate cupcake !</p>' # nopep8
|
|
113
|
+ assert comment['raw_content'] == '<p>What is for you the best cake ever? </br> I personnally vote for Chocolate cupcake!</p>' # nopep8
|
114
|
114
|
assert comment['author']
|
115
|
115
|
assert comment['author']['user_id'] == 1
|
116
|
116
|
# TODO - G.M - 2018-06-172 - [avatar] setup avatar url
|
|
@@ -143,7 +143,7 @@ class TestCommentsEndpoint(FunctionalTest):
|
143
|
143
|
comment = res.json_body[1]
|
144
|
144
|
assert comment['content_id'] == 19
|
145
|
145
|
assert comment['parent_id'] == 7
|
146
|
|
- assert comment['raw_content'] == '<p>What about Apple Pie ? There are Awesome !</p>' # nopep8
|
|
146
|
+ assert comment['raw_content'] == '<p>What about Apple Pie? There are Awesome!</p>' # nopep8
|
147
|
147
|
assert comment['author']
|
148
|
148
|
assert comment['author']['user_id'] == 3
|
149
|
149
|
# TODO - G.M - 2018-06-172 - [avatar] setup avatar url
|
|
@@ -176,7 +176,7 @@ class TestCommentsEndpoint(FunctionalTest):
|
176
|
176
|
comment = res.json_body[1]
|
177
|
177
|
assert comment['content_id'] == 19
|
178
|
178
|
assert comment['parent_id'] == 7
|
179
|
|
- assert comment['raw_content'] == '<p>What about Apple Pie ? There are Awesome !</p>' # nopep8
|
|
179
|
+ assert comment['raw_content'] == '<p>What about Apple Pie? There are Awesome!</p>' # nopep8
|
180
|
180
|
assert comment['author']
|
181
|
181
|
assert comment['author']['user_id'] == 3
|
182
|
182
|
# TODO - G.M - 2018-06-172 - [avatar] setup avatar url
|