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

Side by Side Diff: tests/scm_unittest.py

Issue 11148019: Restore previous behavior of GetSha1ForSvnRev, so unit tests pass. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 8 years, 2 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 | « tests/gclient_scm_test.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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 scm.py.""" 6 """Unit tests for scm.py."""
7 7
8 import logging 8 import logging
9 import os 9 import os
10 import sys 10 import sys
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 class GitWrapperTestCase(BaseSCMTestCase): 73 class GitWrapperTestCase(BaseSCMTestCase):
74 def testMembersChanged(self): 74 def testMembersChanged(self):
75 members = [ 75 members = [
76 'AssertVersion', 76 'AssertVersion',
77 'Capture', 77 'Capture',
78 'CaptureStatus', 78 'CaptureStatus',
79 'current_version', 79 'current_version',
80 'FetchUpstreamTuple', 80 'FetchUpstreamTuple',
81 'GenerateDiff', 81 'GenerateDiff',
82 'GetBlessedSha1ForSvnRev',
82 'GetBranch', 83 'GetBranch',
83 'GetBranchRef', 84 'GetBranchRef',
84 'GetCheckoutRoot', 85 'GetCheckoutRoot',
85 'GetDifferentFiles', 86 'GetDifferentFiles',
86 'GetEmail', 87 'GetEmail',
87 'GetGitSvnHeadRev', 88 'GetGitSvnHeadRev',
88 'GetPatchName', 89 'GetPatchName',
89 'GetSha1ForSvnRev', 90 'GetSha1ForSvnRev',
90 'GetSVNBranch', 91 'GetSVNBranch',
91 'GetUpstreamBranch', 92 'GetUpstreamBranch',
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 # Asserting the tree is not sufficient, svn status must come out clear too. 467 # Asserting the tree is not sufficient, svn status must come out clear too.
467 self.assertEquals('', self._capture(['status'])) 468 self.assertEquals('', self._capture(['status']))
468 469
469 470
470 if __name__ == '__main__': 471 if __name__ == '__main__':
471 if '-v' in sys.argv: 472 if '-v' in sys.argv:
472 logging.basicConfig(level=logging.DEBUG) 473 logging.basicConfig(level=logging.DEBUG)
473 unittest.main() 474 unittest.main()
474 475
475 # vim: ts=2:sw=2:tw=80:et: 476 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « tests/gclient_scm_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698