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

Side by Side Diff: tests/bot_update_coverage_test.py

Issue 2328883002: Remove unused PATCH_TOOL and resulting dead code from bot_update. (Closed)
Patch Set: Fix "test" Created 4 years, 3 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
« no previous file with comments | « recipe_modules/bot_update/resources/bot_update.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) 2015 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2015 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 import codecs 6 import codecs
7 import copy 7 import copy
8 import json 8 import json
9 import os 9 import os
10 import sys 10 import sys
(...skipping 19 matching lines...) Expand all
30 'patch_root': None, 30 'patch_root': None,
31 'issue': None, 31 'issue': None,
32 'patchset': None, 32 'patchset': None,
33 'rietveld_server': None, 33 'rietveld_server': None,
34 'gerrit_repo': None, 34 'gerrit_repo': None,
35 'gerrit_ref': None, 35 'gerrit_ref': None,
36 'gerrit_rebase_patch_ref': None, 36 'gerrit_rebase_patch_ref': None,
37 'revision_mapping': {}, 37 'revision_mapping': {},
38 'apply_issue_email_file': None, 38 'apply_issue_email_file': None,
39 'apply_issue_key_file': None, 39 'apply_issue_key_file': None,
40 'gyp_env': None,
41 'shallow': False, 40 'shallow': False,
42 'runhooks': False,
43 'refs': [], 41 'refs': [],
44 'git_cache_dir': '', 42 'git_cache_dir': '',
45 'gerrit_reset': None, 43 'gerrit_reset': None,
46 } 44 }
47 45
48 46
49 class MockedPopen(object): 47 class MockedPopen(object):
50 """A fake instance of a called subprocess. 48 """A fake instance of a called subprocess.
51 49
52 This is meant to be used in conjunction with MockedCall. 50 This is meant to be used in conjunction with MockedCall.
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 return self.call.records 190 return self.call.records
193 191
194 def testBasicShallow(self): 192 def testBasicShallow(self):
195 self.params['shallow'] = True 193 self.params['shallow'] = True
196 bot_update.ensure_checkout(**self.params) 194 bot_update.ensure_checkout(**self.params)
197 return self.call.records 195 return self.call.records
198 196
199 197
200 if __name__ == '__main__': 198 if __name__ == '__main__':
201 unittest.main() 199 unittest.main()
OLDNEW
« no previous file with comments | « recipe_modules/bot_update/resources/bot_update.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698