Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: tests/gcl_unittest.py

Issue 115615: Add support to cache arbitrary file. Also rename repository_root to REPOSITORY_ROOT. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcl.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gcl_unittest.py
diff --git a/tests/gcl_unittest.py b/tests/gcl_unittest.py
index 0ce088fed4b7a111823e8e404b717b1a61b72ef5..43914eece7acb42f750c3396612f30715dca40e3 100755
--- a/tests/gcl_unittest.py
+++ b/tests/gcl_unittest.py
@@ -54,19 +54,20 @@ class GclUnittest(GclTestsBase):
members = [
'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE', 'CPP_EXTENSIONS',
'Change', 'ChangeInfo', 'Changes', 'Commit', 'DoPresubmitChecks',
- 'ErrorExit', 'GenerateChangeName', 'GenerateDiff', 'GetCLs',
+ 'ErrorExit', 'FILES_CACHE', 'GenerateChangeName', 'GenerateDiff',
+ 'GetCacheDir', 'GetCachedFile', 'GetChangesDir', 'GetCLs',
'GetChangelistInfoFile', 'GetCodeReviewSetting', 'GetEditor',
'GetFilesNotInCL', 'GetInfoDir', 'GetIssueDescription',
'GetModifiedFiles', 'GetRepositoryRoot',
'GetSVNFileProperty', 'Help', 'IGNORE_PATHS', 'IsSVNMoved', 'IsTreeOpen',
'Lint', 'LoadChangelistInfo', 'LoadChangelistInfoForMultiple',
'MISSING_TEST_MSG', 'Opened', 'PresubmitCL', 'ReadFile',
- 'RunShell',
+ 'REPOSITORY_ROOT', 'RunShell',
'RunShellWithReturnCode', 'SEPARATOR', 'SendToRietveld', 'TryChange',
- 'UnknownFiles', 'UploadCL', 'Warn', 'WriteFile', 'gclient',
- 'gcl_info_dir', 'getpass', 'main', 'os', 'random', 're', 'read_gcl_info',
- 'repository_root', 'string', 'subprocess', 'sys', 'tempfile', 'upload',
- 'urllib2', 'xml',
+ 'UnknownFiles', 'UploadCL', 'Warn', 'WriteFile',
+ 'gclient', 'getpass', 'main', 'os', 'random', 're',
+ 'shutil', 'string', 'subprocess', 'sys', 'tempfile',
+ 'upload', 'urllib2', 'xml',
]
# If this test fails, you should add the relevant test.
self.compareMembers(gcl, members)
@@ -78,12 +79,12 @@ class GclUnittest(GclTestsBase):
dummy = StringIO.StringIO()
gcl.sys.stdout = dummy
gcl.Help()
- self.assertEquals(len(dummy.getvalue()), 1813)
+ self.assertEquals(len(dummy.getvalue()), 1815)
finally:
gcl.sys.stdout = old_stdout
def testGetRepositoryRootNone(self):
- gcl.repository_root = None
+ gcl.REPOSITORY_ROOT = None
gcl.os.getcwd().AndReturn("/bleh/prout")
result = {
"Repository Root": ""
@@ -95,7 +96,7 @@ class GclUnittest(GclTestsBase):
self.mox.VerifyAll()
def testGetRepositoryRootGood(self):
- gcl.repository_root = None
+ gcl.REPOSITORY_ROOT = None
root_path = os.path.join('bleh', 'prout', 'pouet')
gcl.os.getcwd().AndReturn(root_path)
result1 = { "Repository Root": "Some root" }
« no previous file with comments | « gcl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698