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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py

Issue 2655783005: Remove extra newlines added to auto-importer CL descriptions. (Closed)
Patch Set: Created 3 years, 11 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 | « third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py
index 2cd16a97543e861fb8ab2875f486edf7ae60211b..a5907443377f46d39afc5288c139de66925eb2dc 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py
@@ -81,12 +81,12 @@ class DepsUpdaterTest(unittest.TestCase):
def test_cl_description_with_empty_environ(self):
host = MockHost()
- host.executive = MockExecutive(output='Last commit message\n')
+ host.executive = MockExecutive(output='Last commit message\n\n')
updater = DepsUpdater(host)
description = updater._cl_description()
self.assertEqual(
description,
- ('Last commit message\n'
+ ('Last commit message\n\n'
'TBR=qyearsley@chromium.org\n'
'NOEXPORT=true'))
self.assertEqual(host.executive.calls, [['git', 'log', '-1', '--format=%B']])
@@ -109,7 +109,7 @@ class DepsUpdaterTest(unittest.TestCase):
def test_cl_description_moves_noexport_tag(self):
host = MockHost()
- host.executive = MockExecutive(output='Summary\n\nNOEXPORT=true')
+ host.executive = MockExecutive(output='Summary\n\nNOEXPORT=true\n\n')
updater = DepsUpdater(host)
description = updater._cl_description()
self.assertEqual(
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698