| OLD | NEW |
| 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 gclient_scm.py.""" | 6 """Unit tests for gclient_scm.py.""" |
| 7 | 7 |
| 8 # pylint: disable=E1103 | 8 # pylint: disable=E1103 |
| 9 | 9 |
| 10 # Import before super_mox to keep valid references. | 10 # Import before super_mox to keep valid references. |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 """This class doesn't use pymox.""" | 677 """This class doesn't use pymox.""" |
| 678 class OptionsObject(object): | 678 class OptionsObject(object): |
| 679 def __init__(self, verbose=False, revision=None): | 679 def __init__(self, verbose=False, revision=None): |
| 680 self.verbose = verbose | 680 self.verbose = verbose |
| 681 self.revision = revision | 681 self.revision = revision |
| 682 self.manually_grab_svn_rev = True | 682 self.manually_grab_svn_rev = True |
| 683 self.deps_os = None | 683 self.deps_os = None |
| 684 self.force = False | 684 self.force = False |
| 685 self.reset = False | 685 self.reset = False |
| 686 self.nohooks = False | 686 self.nohooks = False |
| 687 self.upstream = False |
| 687 self.merge = False | 688 self.merge = False |
| 688 self.jobs = 1 | 689 self.jobs = 1 |
| 689 self.delete_unversioned_trees = False | 690 self.delete_unversioned_trees = False |
| 690 | 691 |
| 691 sample_git_import = """blob | 692 sample_git_import = """blob |
| 692 mark :1 | 693 mark :1 |
| 693 data 6 | 694 data 6 |
| 694 Hello | 695 Hello |
| 695 | 696 |
| 696 blob | 697 blob |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 | 1193 |
| 1193 if __name__ == '__main__': | 1194 if __name__ == '__main__': |
| 1194 if '-v' in sys.argv: | 1195 if '-v' in sys.argv: |
| 1195 logging.basicConfig( | 1196 logging.basicConfig( |
| 1196 level=logging.DEBUG, | 1197 level=logging.DEBUG, |
| 1197 format='%(asctime).19s %(levelname)s %(filename)s:' | 1198 format='%(asctime).19s %(levelname)s %(filename)s:' |
| 1198 '%(lineno)s %(message)s') | 1199 '%(lineno)s %(message)s') |
| 1199 unittest.main() | 1200 unittest.main() |
| 1200 | 1201 |
| 1201 # vim: ts=2:sw=2:tw=80:et: | 1202 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |