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

Side by Side Diff: tests/scm_unittest.py

Issue 247493002: Eliminate all interactive terminal prompts from git. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: fix scm_unittest.py Created 6 years, 8 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 'time', 66 'time',
67 'ValidateEmail', 67 'ValidateEmail',
68 ] 68 ]
69 # If this test fails, you should add the relevant test. 69 # If this test fails, you should add the relevant test.
70 self.compareMembers(scm, members) 70 self.compareMembers(scm, members)
71 71
72 72
73 class GitWrapperTestCase(BaseSCMTestCase): 73 class GitWrapperTestCase(BaseSCMTestCase):
74 def testMembersChanged(self): 74 def testMembersChanged(self):
75 members = [ 75 members = [
76 'ApplyEnvVars',
76 'AssertVersion', 77 'AssertVersion',
77 'Capture', 78 'Capture',
78 'CaptureStatus', 79 'CaptureStatus',
79 'current_version', 80 'current_version',
80 'FetchUpstreamTuple', 81 'FetchUpstreamTuple',
81 'GenerateDiff', 82 'GenerateDiff',
82 'GetBlessedSha1ForSvnRev', 83 'GetBlessedSha1ForSvnRev',
83 'GetBranch', 84 'GetBranch',
84 'GetBranchRef', 85 'GetBranchRef',
85 'GetCheckoutRoot', 86 'GetCheckoutRoot',
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 # Asserting the tree is not sufficient, svn status must come out clear too. 482 # Asserting the tree is not sufficient, svn status must come out clear too.
482 self.assertEquals('', self._capture(['status'])) 483 self.assertEquals('', self._capture(['status']))
483 484
484 485
485 if __name__ == '__main__': 486 if __name__ == '__main__':
486 if '-v' in sys.argv: 487 if '-v' in sys.argv:
487 logging.basicConfig(level=logging.DEBUG) 488 logging.basicConfig(level=logging.DEBUG)
488 unittest.main() 489 unittest.main()
489 490
490 # vim: ts=2:sw=2:tw=80:et: 491 # 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