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

Side by Side Diff: tests/gcl_unittest.py

Issue 6722014: For now, stop suggesting reviewers during 'gcl change'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 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 | 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 # pylint is too confused. 8 # pylint is too confused.
9 # pylint: disable=E1101,E1103,E1120,W0212,W0403 9 # pylint: disable=E1101,E1103,E1120,W0212,W0403
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', 86 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir',
87 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir', 87 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir',
88 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles', 88 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles',
89 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG', 89 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG',
90 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', 'REVIEWERS_REGEX', 90 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', 'REVIEWERS_REGEX',
91 'RunShell', 'RunShellWithReturnCode', 'SVN', 91 'RunShell', 'RunShellWithReturnCode', 'SVN',
92 'TryChange', 'UnknownFiles', 'Warn', 92 'TryChange', 'UnknownFiles', 'Warn',
93 'attrs', 'breakpad', 'defer_attributes', 'gclient_utils', 'getpass', 93 'attrs', 'breakpad', 'defer_attributes', 'gclient_utils', 'getpass',
94 'json', 'main', 'need_change', 'need_change_and_args', 'no_args', 94 'json', 'main', 'need_change', 'need_change_and_args', 'no_args',
95 'optparse', 'os', 'owners', 'presubmit_support', 'random', 're', 95 'optparse', 'os', 'owners', 'presubmit_support', 'random', 're',
96 'string', 'subprocess', 'suggest_reviewers', 'sys', 'tempfile', 96 'string', 'subprocess', 'sys', 'tempfile', 'time', 'upload',
97 'time', 'upload', 'urllib2', 97 'urllib2',
98 ] 98 ]
99 # If this test fails, you should add the relevant test. 99 # If this test fails, you should add the relevant test.
100 self.compareMembers(gcl, members) 100 self.compareMembers(gcl, members)
101 101
102 def testIsSVNMoved(self): 102 def testIsSVNMoved(self):
103 # TODO(maruel): TEST ME 103 # TODO(maruel): TEST ME
104 pass 104 pass
105 105
106 def testGetSVNFileProperty(self): 106 def testGetSVNFileProperty(self):
107 # TODO(maruel): TEST ME 107 # TODO(maruel): TEST ME
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 self.assertEquals(retval, 0) 560 self.assertEquals(retval, 0)
561 self.assertEquals(change_info.description, 561 self.assertEquals(change_info.description,
562 'deescription\n\nCommitted: http://view/12345') 562 'deescription\n\nCommitted: http://view/12345')
563 self.assertTrue(change_info._deleted) 563 self.assertTrue(change_info._deleted)
564 self.assertTrue(change_info._closed) 564 self.assertTrue(change_info._closed)
565 565
566 566
567 if __name__ == '__main__': 567 if __name__ == '__main__':
568 import unittest 568 import unittest
569 unittest.main() 569 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