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/presubmit_unittest.py

Issue 6717025: Revert r79006: "Add code to 'fix' python encoding and it's unit test." (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 | « tests/gcl_unittest.py ('k') | tests/trychange_unittest.py » ('j') | 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 presubmit_support.py and presubmit_canned_checks.py.""" 6 """Unit tests for presubmit_support.py and presubmit_canned_checks.py."""
7 7
8 # pylint is too confused. 8 # pylint is too confused.
9 # pylint: disable=E1101,E1103,W0212,W0403 9 # pylint: disable=E1101,E1103,W0212,W0403
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 def testMembersChanged(self): 135 def testMembersChanged(self):
136 self.mox.ReplayAll() 136 self.mox.ReplayAll()
137 members = [ 137 members = [
138 'AffectedFile', 'Change', 'DoGetTrySlaves', 'DoPresubmitChecks', 138 'AffectedFile', 'Change', 'DoGetTrySlaves', 'DoPresubmitChecks',
139 'GetTrySlavesExecuter', 'GitAffectedFile', 139 'GetTrySlavesExecuter', 'GitAffectedFile',
140 'GitChange', 'InputApi', 'ListRelevantPresubmitFiles', 'Main', 140 'GitChange', 'InputApi', 'ListRelevantPresubmitFiles', 'Main',
141 'NotImplementedException', 'OutputApi', 'ParseFiles', 141 'NotImplementedException', 'OutputApi', 'ParseFiles',
142 'PresubmitExecuter', 'PresubmitOutput', 'ScanSubDirs', 142 'PresubmitExecuter', 'PresubmitOutput', 'ScanSubDirs',
143 'SvnAffectedFile', 'SvnChange', 'cPickle', 'cStringIO', 143 'SvnAffectedFile', 'SvnChange', 'cPickle', 'cStringIO',
144 'exceptions', 'fix_encoding', 'fnmatch', 'gclient_utils', 'glob', 'json', 144 'exceptions', 'fnmatch', 'gclient_utils', 'glob', 'json', 'load_files',
145 'load_files',
146 'logging', 'marshal', 'normpath', 'optparse', 'os', 'owners', 'pickle', 145 'logging', 'marshal', 'normpath', 'optparse', 'os', 'owners', 'pickle',
147 'presubmit_canned_checks', 'random', 're', 'scm', 'subprocess', 146 'presubmit_canned_checks', 'random', 're', 'scm', 'subprocess',
148 'sys', 'tempfile', 'time', 'traceback', 'types', 'unittest', 'urllib2', 147 'sys', 'tempfile', 'time', 'traceback', 'types', 'unittest', 'urllib2',
149 'warn', 148 'warn',
150 ] 149 ]
151 # If this test fails, you should add the relevant test. 150 # If this test fails, you should add the relevant test.
152 self.compareMembers(presubmit, members) 151 self.compareMembers(presubmit, members)
153 152
154 def testListRelevantPresubmitFiles(self): 153 def testListRelevantPresubmitFiles(self):
155 join = presubmit.os.path.join 154 join = presubmit.os.path.join
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 1967
1969 def testCannedCheckOwners_HTTPS_HostURL(self): 1968 def testCannedCheckOwners_HTTPS_HostURL(self):
1970 self.OwnersTest(is_committing=True, 1969 self.OwnersTest(is_committing=True,
1971 approvers=set(['ben@example.com']), 1970 approvers=set(['ben@example.com']),
1972 uncovered_files=set(), host_url='https://localhost') 1971 uncovered_files=set(), host_url='https://localhost')
1973 1972
1974 1973
1975 if __name__ == '__main__': 1974 if __name__ == '__main__':
1976 import unittest 1975 import unittest
1977 unittest.main() 1976 unittest.main()
OLDNEW
« no previous file with comments | « tests/gcl_unittest.py ('k') | tests/trychange_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698