@@ -110,6 +110,7 @@ def test_list_string_comments(self, m_request, in_params, request_params, base_a
110110 "targetLanguageId" : "ua" ,
111111 "type" : StringCommentType .COMMENT ,
112112 "issueType" : None ,
113+ "attachments" : None ,
113114 },
114115 ),
115116 (
@@ -119,13 +120,15 @@ def test_list_string_comments(self, m_request, in_params, request_params, base_a
119120 "targetLanguageId" : "ua" ,
120121 "type" : StringCommentType .COMMENT ,
121122 "issueType" : StringCommentIssueType .CONTEXT_REQUEST ,
123+ "attachments" : [1 , 2 , 3 ],
122124 },
123125 {
124126 "text" : "text" ,
125127 "stringId" : 1 ,
126128 "targetLanguageId" : "ua" ,
127129 "type" : StringCommentType .COMMENT ,
128130 "issueType" : StringCommentIssueType .CONTEXT_REQUEST ,
131+ "attachments" : [1 , 2 , 3 ],
129132 },
130133 ),
131134 ),
@@ -142,6 +145,17 @@ def test_add_string_comment(self, m_request, in_params, request_data, base_absol
142145 request_data = request_data ,
143146 )
144147
148+ @mock .patch ("crowdin_api.requester.APIRequester.request" )
149+ def test_delete_string_comment_attachment (self , m_request , base_absolut_url ):
150+ m_request .return_value = "response"
151+
152+ resource = self .get_resource (base_absolut_url )
153+ assert resource .delete_string_comment_attachment (projectId = 1 , stringCommentId = 2 , attachmentId = 3 ) == "response"
154+ m_request .assert_called_once_with (
155+ method = "delete" ,
156+ path = resource .get_string_comments_path (projectId = 1 , stringCommentId = 2 ) + "/attachments/3" ,
157+ )
158+
145159 @mock .patch ("crowdin_api.requester.APIRequester.request" )
146160 def test_get_string_comment (self , m_request , base_absolut_url ):
147161 m_request .return_value = "response"
0 commit comments