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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/test_xtm_translations_utils.py ('k') | tests/xtm_conftest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils.py
diff --git a/tests/utils.py b/tests/utils.py
index 6baf9a20d414ff03d4ae35528b728eeea258b75c..570db79f9042cbdcb8e9a8ad068b6d247575b8ca 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -161,6 +161,7 @@ class XtmMockArgs:
projects_func = staticmethod(create_project)
source_lang = 'en_US'
workflow_name = None
+ api_url = None
class UploadArgsNamespace:
"""Mock arguments for uploading files to XTM for translation."""
@@ -168,9 +169,16 @@ class XtmMockArgs:
source_dir = None
projects_func = staticmethod(upload_files)
no_overwrite = False
+ api_url = None
class DownloadArgsNamespace:
"""Mock arguments for downloading translation from XTM."""
source_dir = None
projects_func = staticmethod(download_files)
+ api_url = None
+
+ class LoginArgsNamespace:
+ """Mock arguments for generating a new token."""
+
+ api_url = None
« 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