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

Side by Side Diff: tests/utils.py

Issue 29968558: Issue 7037 - [XTM Integration] Make REST API url customizable
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:
View unified diff | Download patch
« no previous file with comments | « tests/test_xtm_translations_utils.py ('k') | tests/xtm_conftest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 name = 'bar' 154 name = 'bar'
155 desc = 'foo' 155 desc = 'foo'
156 customer_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 165
165 class UploadArgsNamespace: 166 class UploadArgsNamespace:
166 """Mock arguments for uploading files to XTM for translation.""" 167 """Mock arguments for uploading files to XTM for translation."""
167 168
168 source_dir = None 169 source_dir = None
169 projects_func = staticmethod(upload_files) 170 projects_func = staticmethod(upload_files)
170 no_overwrite = False 171 no_overwrite = False
172 api_url = None
171 173
172 class DownloadArgsNamespace: 174 class DownloadArgsNamespace:
173 """Mock arguments for downloading translation from XTM.""" 175 """Mock arguments for downloading translation from XTM."""
174 176
175 source_dir = None 177 source_dir = None
176 projects_func = staticmethod(download_files) 178 projects_func = staticmethod(download_files)
179 api_url = None
180
181 class LoginArgsNamespace:
182 """Mock arguments for generating a new token."""
183
184 api_url = None
OLDNEW
« no previous file with comments | « tests/test_xtm_translations_utils.py ('k') | tests/xtm_conftest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld