Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: tests/utils.py

Issue 29968558: Issue 7037 - [XTM Integration] Make REST API url customizable
Left Patch Set: Addressed comments Created Sept. 17, 2019, 12:22 p.m.
Right Patch Set: Merged with changes from 7039 Created Sept. 17, 2019, 1:37 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « tests/test_xtm_translations_utils.py ('k') | tests/xtm_conftest.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # This file is part of the Adblock Plus web scripts, 1 # This file is part of the Adblock Plus web scripts,
2 # Copyright (C) 2006-present eyeo GmbH 2 # Copyright (C) 2006-present eyeo GmbH
3 # 3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify 4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as 5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation. 6 # published by the Free Software Foundation.
7 # 7 #
8 # Adblock Plus is distributed in the hope that it will be useful, 8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 147
148 class XtmMockArgs: 148 class XtmMockArgs:
149 """Mock arguments for the XTM integration script.""" 149 """Mock arguments for the XTM integration script."""
150 150
151 class CreationArgsNamespace: 151 class CreationArgsNamespace:
152 """Mock arguments for creating a new XTM project.""" 152 """Mock arguments for creating a new XTM project."""
153 153
154 name = 'bar' 154 name = 'bar'
155 desc = 'foo' 155 desc = 'foo'
156 client_id = 10 156 customer_id = 10
157 ref_id = 'faz' 157 ref_id = 'faz'
158 workflow_id = 20 158 workflow_id = 20
159 save_id = False 159 save_id = False
160 source_dir = None 160 source_dir = None
161 projects_func = staticmethod(create_project) 161 projects_func = staticmethod(create_project)
162 source_lang = 'en_US' 162 source_lang = 'en_US'
163 workflow_name = None 163 workflow_name = None
164 api_url = None 164 api_url = None
165 165
166 class UploadArgsNamespace: 166 class UploadArgsNamespace:
167 """Mock arguments for uploading files to XTM for translation.""" 167 """Mock arguments for uploading files to XTM for translation."""
168 168
169 source_dir = None 169 source_dir = None
170 projects_func = staticmethod(upload_files) 170 projects_func = staticmethod(upload_files)
171 no_overwrite = False 171 no_overwrite = False
172 api_url = None 172 api_url = None
173 173
174 class DownloadArgsNamespace: 174 class DownloadArgsNamespace:
175 """Mock arguments for downloading translation from XTM.""" 175 """Mock arguments for downloading translation from XTM."""
176 176
177 source_dir = None 177 source_dir = None
178 projects_func = staticmethod(download_files) 178 projects_func = staticmethod(download_files)
179 api_url = None 179 api_url = None
180 180
181 class LoginArgsNamespace: 181 class LoginArgsNamespace:
182 """Mock arguments for generating a new token.""" 182 """Mock arguments for generating a new token."""
183 183
184 api_url = None 184 api_url = None
LEFTRIGHT

Powered by Google App Engine
This is Rietveld