OLD | NEW |
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 Loading... |
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 | 164 |
165 class UploadArgsNamespace: | 165 class UploadArgsNamespace: |
166 """Mock arguments for uploading files to XTM for translation.""" | 166 """Mock arguments for uploading files to XTM for translation.""" |
167 | 167 |
168 source_dir = None | 168 source_dir = None |
169 projects_func = staticmethod(upload_files) | 169 projects_func = staticmethod(upload_files) |
170 no_overwrite = False | 170 no_overwrite = False |
171 | 171 |
172 class DownloadArgsNamespace: | 172 class DownloadArgsNamespace: |
173 """Mock arguments for downloading translation from XTM.""" | 173 """Mock arguments for downloading translation from XTM.""" |
174 | 174 |
175 source_dir = None | 175 source_dir = None |
176 projects_func = staticmethod(download_files) | 176 projects_func = staticmethod(download_files) |
OLD | NEW |