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

Side by Side Diff: tests/gcl_unittest.py

Issue 4277003: Change gcl presubmit to only run commit hooks by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Fix unit test Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « gcl.py ('k') | 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) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2010 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 # Fixes include path. 8 # Fixes include path.
9 from super_mox import mox, SuperMoxTestBase 9 from super_mox import mox, SuperMoxTestBase
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage', 50 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage',
51 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir', 51 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir',
52 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', 52 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir',
53 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir', 53 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir',
54 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles', 54 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles',
55 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG', 55 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG',
56 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', 56 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT',
57 'RunShell', 'RunShellWithReturnCode', 'SVN', 57 'RunShell', 'RunShellWithReturnCode', 'SVN',
58 'TryChange', 'UnknownFiles', 'Warn', 58 'TryChange', 'UnknownFiles', 'Warn',
59 'attrs', 'breakpad', 'defer_attributes', 'gclient_utils', 'getpass', 59 'attrs', 'breakpad', 'defer_attributes', 'gclient_utils', 'getpass',
60 'json', 'main', 'need_change', 'need_change_and_args', 'no_args', 'os', 60 'json', 'main', 'need_change', 'need_change_and_args', 'no_args',
61 'random', 're', 'string', 'subprocess', 'sys', 'tempfile', 61 'optparse', 'os', 'random', 're', 'string', 'subprocess', 'sys',
62 'time', 'upload', 'urllib2', 62 'tempfile', 'time', 'upload', 'urllib2',
63 ] 63 ]
64 # If this test fails, you should add the relevant test. 64 # If this test fails, you should add the relevant test.
65 self.compareMembers(gcl, members) 65 self.compareMembers(gcl, members)
66 66
67 def testIsSVNMoved(self): 67 def testIsSVNMoved(self):
68 # TODO(maruel): TEST ME 68 # TODO(maruel): TEST ME
69 pass 69 pass
70 70
71 def testGetSVNFileProperty(self): 71 def testGetSVNFileProperty(self):
72 # TODO(maruel): TEST ME 72 # TODO(maruel): TEST ME
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 try: 367 try:
368 gcl.CMDupload(['naame', '-s', 'foo']) 368 gcl.CMDupload(['naame', '-s', 'foo'])
369 self.fail() 369 self.fail()
370 except SystemExit: 370 except SystemExit:
371 pass 371 pass
372 372
373 373
374 if __name__ == '__main__': 374 if __name__ == '__main__':
375 import unittest 375 import unittest
376 unittest.main() 376 unittest.main()
OLDNEW
« 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