Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crowdin_api/api_resources/projects/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def add_file_based_project(
exportApprovedOnly: Optional[bool] = None,
defaultTmId: Optional[int] = None,
defaultGlossaryId: Optional[None] = None,
tmApprovedSuggestionsOnly: Optional[bool] = None,
):
"""
Add Project(Files Based Project Form).
Expand Down Expand Up @@ -141,6 +142,7 @@ def add_file_based_project(
"autoTranslateDialects": autoTranslateDialects,
"defaultTmId": defaultTmId,
"defaultGlossaryId": defaultGlossaryId,
"tmApprovedSuggestionsOnly": tmApprovedSuggestionsOnly,
},
)

Expand Down Expand Up @@ -175,6 +177,7 @@ def add_strings_based_project(
notificationSettings: Optional[NotificationSettings] = None,
defaultTmId: Optional[int] = None,
defaultGlossaryId: Optional[None] = None,
tmApprovedSuggestionsOnly: Optional[bool] = None,
):
"""
Add Project(Strings Based Project Form).
Expand Down Expand Up @@ -214,6 +217,7 @@ def add_strings_based_project(
"notificationSettings": notificationSettings,
"defaultTmId": defaultTmId,
"defaultGlossaryId": defaultGlossaryId,
"tmApprovedSuggestionsOnly": tmApprovedSuggestionsOnly,
},
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def test_add_project(self, m_request, base_absolut_url):
"notificationSettings": None,
"defaultTmId": None,
"defaultGlossaryId": None,
"tmApprovedSuggestionsOnly": None,
},
),
(
Expand Down Expand Up @@ -171,6 +172,7 @@ def test_add_project(self, m_request, base_absolut_url):
),
"defaultTmId": 1,
"defaultGlossaryId": 1,
"tmApprovedSuggestionsOnly": True,
},
{
"name": "name",
Expand Down Expand Up @@ -198,6 +200,7 @@ def test_add_project(self, m_request, base_absolut_url):
),
"defaultTmId": 1,
"defaultGlossaryId": 1,
"tmApprovedSuggestionsOnly": True,
},
),
),
Expand Down Expand Up @@ -248,6 +251,7 @@ def test_add_file_based_project(self, m_add_project, in_params, request_data, ba
"notificationSettings": None,
"defaultTmId": None,
"defaultGlossaryId": None,
"tmApprovedSuggestionsOnly": None,
},
),
(
Expand Down Expand Up @@ -315,6 +319,7 @@ def test_add_file_based_project(self, m_add_project, in_params, request_data, ba
),
"defaultTmId": 1,
"defaultGlossaryId": 1,
"tmApprovedSuggestionsOnly": True,
},
{
"name": "name",
Expand Down Expand Up @@ -380,6 +385,7 @@ def test_add_file_based_project(self, m_add_project, in_params, request_data, ba
),
"defaultTmId": 1,
"defaultGlossaryId": 1,
"tmApprovedSuggestionsOnly": True,
},
),
),
Expand Down
Loading