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

Side by Side Diff: tests/gcl_unittest.py

Issue 513763002: Add the patchset id to the manual commit messages (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Clean up Created 6 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 | Annotate | Revision Log
« no previous file with comments | « git_cl.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 gcl.py.""" 6 """Unit tests for gcl.py."""
7 7
8 # pylint: disable=E1103,E1101,E1120 8 # pylint: disable=E1103,E1101,E1120
9 9
10 import os 10 import os
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 606
607 retval = gcl.CMDcommit(['naame']) 607 retval = gcl.CMDcommit(['naame'])
608 self.assertEquals(retval, 0) 608 self.assertEquals(retval, 0)
609 # This is because append_footer is mocked. 609 # This is because append_footer is mocked.
610 self.assertEquals(change_info.description, 'deescription') 610 self.assertEquals(change_info.description, 'deescription')
611 # pylint: disable=W0212 611 # pylint: disable=W0212
612 self.assertTrue(change_info._deleted) 612 self.assertTrue(change_info._deleted)
613 self.assertTrue(change_info._closed) 613 self.assertTrue(change_info._closed)
614 self.assertEqual( 614 self.assertEqual(
615 change_info._comments_added, 615 change_info._comments_added,
616 ["Committed patchset #1 manually as r12345 (presubmit successful)."]) 616 ["Committed patchset #1 (id:1337) manually as r12345 (presubmit "
617 "successful)."])
617 618
618 619
619 if __name__ == '__main__': 620 if __name__ == '__main__':
620 import unittest 621 import unittest
621 unittest.main() 622 unittest.main()
OLDNEW
« no previous file with comments | « git_cl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698