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: Created Dec. 27, 2018, 2:23 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
Index: tests/utils.py
diff --git a/tests/utils.py b/tests/utils.py
index 076b52041185863af9e7bfc6fe3865aa12762c91..043a486dccf509844ef5a97a2261ea7ee778fecb 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

Powered by Google App Engine
This is Rietveld