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: Removed unnecessary print statements Created Sept. 17, 2019, 12:24 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 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
« 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