Skip to content

Commit

Permalink
Added stringId as param in string comments (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamGarg2910 committed Oct 23, 2022
1 parent 1951497 commit d25f098
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crowdin_api/api_resources/string_comments/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def add_string_comment(
self,
projectId: int,
text: str,
stringId: int,
targetLanguageId: str,
type: StringCommentType,
issueType: Optional[StringCommentIssueType] = None,
Expand All @@ -77,6 +78,7 @@ def add_string_comment(
path=self.get_string_comments_path(projectId=projectId),
request_data={
"text": text,
"stringId": stringId,
"targetLanguageId": targetLanguageId,
"type": type,
"issueType": issueType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ def test_list_string_comments(self, m_request, in_params, request_params, base_a
(
{
"text": "text",
"stringId": 1,
"targetLanguageId": "ua",
"type": StringCommentType.COMMENT,
},
{
"text": "text",
"stringId": 1,
"targetLanguageId": "ua",
"type": StringCommentType.COMMENT,
"issueType": None,
Expand All @@ -97,12 +99,14 @@ def test_list_string_comments(self, m_request, in_params, request_params, base_a
(
{
"text": "text",
"stringId": 1,
"targetLanguageId": "ua",
"type": StringCommentType.COMMENT,
"issueType": StringCommentIssueType.CONTEXT_REQUEST,
},
{
"text": "text",
"stringId": 1,
"targetLanguageId": "ua",
"type": StringCommentType.COMMENT,
"issueType": StringCommentIssueType.CONTEXT_REQUEST,
Expand Down

0 comments on commit d25f098

Please sign in to comment.