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

Unified Diff: tests/git_footers_test.py

Issue 1812803002: Gerrit git cl: fix change-id appending. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: nit Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « git_footers.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/git_footers_test.py
diff --git a/tests/git_footers_test.py b/tests/git_footers_test.py
index 86e8b6d93b08ea22c14a934c954327e3531ea647..c959949f9106d534ff7bd015d328e852b31ca1f8 100755
--- a/tests/git_footers_test.py
+++ b/tests/git_footers_test.py
@@ -99,6 +99,11 @@ My commit message is my best friend. It is my life. I must master it.
git_footers.add_footer_change_id('header\n\nBUG: yy\n\nPos: 1', 'Ixxx'),
'header\n\nBUG: yy\n\nChange-Id: Ixxx\nPos: 1')
+ # Special case: first line is never a footer, even if it looks line one.
+ self.assertEqual(
+ git_footers.add_footer_change_id('header: like footer', 'Ixxx'),
+ 'header: like footer\n\nChange-Id: Ixxx')
+
if __name__ == '__main__':
unittest.main()
« no previous file with comments | « git_footers.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698