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

Side by Side Diff: tests/gcl_unittest.py

Issue 118159: Fix gcl unit tests. (Closed)
Patch Set: Created 11 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unit tests for gcl.py.""" 6 """Unit tests for gcl.py."""
7 7
8 import unittest 8 import unittest
9 9
10 # Local imports 10 # Local imports
(...skipping 29 matching lines...) Expand all
40 """General gcl.py tests.""" 40 """General gcl.py tests."""
41 def testMembersChanged(self): 41 def testMembersChanged(self):
42 members = [ 42 members = [
43 'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE', 'CPP_EXTENSIONS', 43 'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE', 'CPP_EXTENSIONS',
44 'Change', 'ChangeInfo', 'Changes', 'Commit', 'DoPresubmitChecks', 44 'Change', 'ChangeInfo', 'Changes', 'Commit', 'DoPresubmitChecks',
45 'ErrorExit', 'FILES_CACHE', 'GenerateChangeName', 'GenerateDiff', 45 'ErrorExit', 'FILES_CACHE', 'GenerateChangeName', 'GenerateDiff',
46 'GetCacheDir', 'GetCachedFile', 'GetChangesDir', 'GetCLs', 46 'GetCacheDir', 'GetCachedFile', 'GetChangesDir', 'GetCLs',
47 'GetChangelistInfoFile', 'GetCodeReviewSetting', 'GetEditor', 47 'GetChangelistInfoFile', 'GetCodeReviewSetting', 'GetEditor',
48 'GetFilesNotInCL', 'GetInfoDir', 'GetIssueDescription', 48 'GetFilesNotInCL', 'GetInfoDir', 'GetIssueDescription',
49 'GetModifiedFiles', 'GetRepositoryRoot', 49 'GetModifiedFiles', 'GetRepositoryRoot',
50 'GetSVNFileProperty', 'Help', 'IGNORE_PATHS', 'IsSVNMoved', 'IsTreeOpen', 50 'GetSVNFileProperty', 'Help', 'IGNORE_PATHS', 'IsSVNMoved',
51 'Lint', 'LoadChangelistInfo', 'LoadChangelistInfoForMultiple', 51 'Lint', 'LoadChangelistInfo', 'LoadChangelistInfoForMultiple',
52 'MISSING_TEST_MSG', 'Opened', 'PresubmitCL', 'ReadFile', 52 'MISSING_TEST_MSG', 'Opened', 'PresubmitCL', 'ReadFile',
53 'REPOSITORY_ROOT', 'RunShell', 53 'REPOSITORY_ROOT', 'RunShell',
54 'RunShellWithReturnCode', 'SEPARATOR', 'SendToRietveld', 'TryChange', 54 'RunShellWithReturnCode', 'SEPARATOR', 'SendToRietveld', 'TryChange',
55 'UnknownFiles', 'UploadCL', 'Warn', 'WriteFile', 55 'UnknownFiles', 'UploadCL', 'Warn', 'WriteFile',
56 'gclient', 'getpass', 'main', 'os', 'random', 're', 56 'gclient', 'getpass', 'main', 'os', 'random', 're',
57 'shutil', 'string', 'subprocess', 'sys', 'tempfile', 57 'shutil', 'string', 'subprocess', 'sys', 'tempfile',
58 'upload', 'urllib2', 'xml', 58 'upload', 'urllib2', 'xml',
59 ] 59 ]
60 # If this test fails, you should add the relevant test. 60 # If this test fails, you should add the relevant test.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 gcl.TryChange(change_info, 226 gcl.TryChange(change_info,
227 ['--issue', '1', '--patchset', '2'], 227 ['--issue', '1', '--patchset', '2'],
228 swallow_exception=True) 228 swallow_exception=True)
229 gcl.os.chdir('somewhere') 229 gcl.os.chdir('somewhere')
230 self.mox.ReplayAll() 230 self.mox.ReplayAll()
231 gcl.UploadCL(change_info, args) 231 gcl.UploadCL(change_info, args)
232 232
233 233
234 if __name__ == '__main__': 234 if __name__ == '__main__':
235 unittest.main() 235 unittest.main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698