OLD | NEW |
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 Loading... |
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 'apply_issue_oauth2_file': None, |
40 'shallow': False, | 41 'shallow': False, |
41 'refs': [], | 42 'refs': [], |
42 'git_cache_dir': '', | 43 'git_cache_dir': '', |
43 'gerrit_reset': None, | 44 'gerrit_reset': None, |
44 } | 45 } |
45 | 46 |
46 | 47 |
47 class MockedPopen(object): | 48 class MockedPopen(object): |
48 """A fake instance of a called subprocess. | 49 """A fake instance of a called subprocess. |
49 | 50 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return self.call.records | 191 return self.call.records |
191 | 192 |
192 def testBasicShallow(self): | 193 def testBasicShallow(self): |
193 self.params['shallow'] = True | 194 self.params['shallow'] = True |
194 bot_update.ensure_checkout(**self.params) | 195 bot_update.ensure_checkout(**self.params) |
195 return self.call.records | 196 return self.call.records |
196 | 197 |
197 | 198 |
198 if __name__ == '__main__': | 199 if __name__ == '__main__': |
199 unittest.main() | 200 unittest.main() |
OLD | NEW |