@@ -102,12 +102,12 @@ def test_insert_comment(self):
102102
103103 self .upload_file (remote_data_folder + '/' + remote_file_name , open (os .path .join (self .local_test_folder , local_file ), 'rb' ))
104104
105- comment_range_start_node = asposewordscloud .NodeLink (node_id = '0.3.0.3' )
106- comment_range_start = asposewordscloud .DocumentPosition (node = comment_range_start_node , offset = 0 )
107- comment_range_end_node = asposewordscloud .NodeLink (node_id = '0.3.0.3' )
108- comment_range_end = asposewordscloud .DocumentPosition (node = comment_range_end_node , offset = 0 )
109- comment = asposewordscloud .CommentInsert (range_start = comment_range_start , range_end = comment_range_end , initial = 'IA' , author = 'Imran Anwar' , text = 'A new Comment' )
110- request = asposewordscloud .models .requests .InsertCommentRequest (name = remote_file_name , comment = comment , folder = remote_data_folder )
105+ request_comment_range_start_node = asposewordscloud .NodeLink (node_id = '0.3.0.3' )
106+ request_comment_range_start = asposewordscloud .DocumentPosition (node = request_comment_range_start_node , offset = 0 )
107+ request_comment_range_end_node = asposewordscloud .NodeLink (node_id = '0.3.0.3' )
108+ request_comment_range_end = asposewordscloud .DocumentPosition (node = request_comment_range_end_node , offset = 0 )
109+ request_comment = asposewordscloud .CommentInsert (range_start = request_comment_range_start , range_end = request_comment_range_end , initial = 'IA' , author = 'Imran Anwar' , text = 'A new Comment' )
110+ request = asposewordscloud .models .requests .InsertCommentRequest (name = remote_file_name , comment = request_comment , folder = remote_data_folder )
111111
112112 result = self .words_api .insert_comment (request )
113113 self .assertIsNotNone (result , 'Error has occurred.' )
@@ -123,12 +123,12 @@ def test_insert_comment(self):
123123 def test_insert_comment_online (self ):
124124 local_file = 'Common/test_multi_pages.docx'
125125
126- comment_range_start_node = asposewordscloud .NodeLink (node_id = '0.3.0.3' )
127- comment_range_start = asposewordscloud .DocumentPosition (node = comment_range_start_node , offset = 0 )
128- comment_range_end_node = asposewordscloud .NodeLink (node_id = '0.3.0.3' )
129- comment_range_end = asposewordscloud .DocumentPosition (node = comment_range_end_node , offset = 0 )
130- comment = asposewordscloud .CommentInsert (range_start = comment_range_start , range_end = comment_range_end , initial = 'IA' , author = 'Imran Anwar' , text = 'A new Comment' )
131- request = asposewordscloud .models .requests .InsertCommentOnlineRequest (document = open (os .path .join (self .local_test_folder , local_file ), 'rb' ), comment = comment )
126+ request_comment_range_start_node = asposewordscloud .NodeLink (node_id = '0.3.0.3' )
127+ request_comment_range_start = asposewordscloud .DocumentPosition (node = request_comment_range_start_node , offset = 0 )
128+ request_comment_range_end_node = asposewordscloud .NodeLink (node_id = '0.3.0.3' )
129+ request_comment_range_end = asposewordscloud .DocumentPosition (node = request_comment_range_end_node , offset = 0 )
130+ request_comment = asposewordscloud .CommentInsert (range_start = request_comment_range_start , range_end = request_comment_range_end , initial = 'IA' , author = 'Imran Anwar' , text = 'A new Comment' )
131+ request = asposewordscloud .models .requests .InsertCommentOnlineRequest (document = open (os .path .join (self .local_test_folder , local_file ), 'rb' ), comment = request_comment )
132132
133133 result = self .words_api .insert_comment_online (request )
134134 self .assertIsNotNone (result , 'Error has occurred.' )
@@ -144,12 +144,12 @@ def test_update_comment(self):
144144
145145 self .upload_file (remote_data_folder + '/' + remote_file_name , open (os .path .join (self .local_test_folder , local_file ), 'rb' ))
146146
147- comment_range_start_node = asposewordscloud .NodeLink (node_id = '0.3.0' )
148- comment_range_start = asposewordscloud .DocumentPosition (node = comment_range_start_node , offset = 0 )
149- comment_range_end_node = asposewordscloud .NodeLink (node_id = '0.3.0' )
150- comment_range_end = asposewordscloud .DocumentPosition (node = comment_range_end_node , offset = 0 )
151- comment = asposewordscloud .CommentUpdate (range_start = comment_range_start , range_end = comment_range_end , initial = 'IA' , author = 'Imran Anwar' , text = 'A new Comment' )
152- request = asposewordscloud .models .requests .UpdateCommentRequest (name = remote_file_name , comment_index = 0 , comment = comment , folder = remote_data_folder )
147+ request_comment_range_start_node = asposewordscloud .NodeLink (node_id = '0.3.0' )
148+ request_comment_range_start = asposewordscloud .DocumentPosition (node = request_comment_range_start_node , offset = 0 )
149+ request_comment_range_end_node = asposewordscloud .NodeLink (node_id = '0.3.0' )
150+ request_comment_range_end = asposewordscloud .DocumentPosition (node = request_comment_range_end_node , offset = 0 )
151+ request_comment = asposewordscloud .CommentUpdate (range_start = request_comment_range_start , range_end = request_comment_range_end , initial = 'IA' , author = 'Imran Anwar' , text = 'A new Comment' )
152+ request = asposewordscloud .models .requests .UpdateCommentRequest (name = remote_file_name , comment_index = 0 , comment = request_comment , folder = remote_data_folder )
153153
154154 result = self .words_api .update_comment (request )
155155 self .assertIsNotNone (result , 'Error has occurred.' )
@@ -165,12 +165,12 @@ def test_update_comment(self):
165165 def test_update_comment_online (self ):
166166 local_file = 'Common/test_multi_pages.docx'
167167
168- comment_range_start_node = asposewordscloud .NodeLink (node_id = '0.3.0' )
169- comment_range_start = asposewordscloud .DocumentPosition (node = comment_range_start_node , offset = 0 )
170- comment_range_end_node = asposewordscloud .NodeLink (node_id = '0.3.0' )
171- comment_range_end = asposewordscloud .DocumentPosition (node = comment_range_end_node , offset = 0 )
172- comment = asposewordscloud .CommentUpdate (range_start = comment_range_start , range_end = comment_range_end , initial = 'IA' , author = 'Imran Anwar' , text = 'A new Comment' )
173- request = asposewordscloud .models .requests .UpdateCommentOnlineRequest (document = open (os .path .join (self .local_test_folder , local_file ), 'rb' ), comment_index = 0 , comment = comment )
168+ request_comment_range_start_node = asposewordscloud .NodeLink (node_id = '0.3.0' )
169+ request_comment_range_start = asposewordscloud .DocumentPosition (node = request_comment_range_start_node , offset = 0 )
170+ request_comment_range_end_node = asposewordscloud .NodeLink (node_id = '0.3.0' )
171+ request_comment_range_end = asposewordscloud .DocumentPosition (node = request_comment_range_end_node , offset = 0 )
172+ request_comment = asposewordscloud .CommentUpdate (range_start = request_comment_range_start , range_end = request_comment_range_end , initial = 'IA' , author = 'Imran Anwar' , text = 'A new Comment' )
173+ request = asposewordscloud .models .requests .UpdateCommentOnlineRequest (document = open (os .path .join (self .local_test_folder , local_file ), 'rb' ), comment_index = 0 , comment = request_comment )
174174
175175 result = self .words_api .update_comment_online (request )
176176 self .assertIsNotNone (result , 'Error has occurred.' )
0 commit comments