mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
[git_footers] remove param before_keys from add_footer
The param before_key used to be used in presubmit_support.py, but it was removed in 2018, and has never been used anywhere since. - https://crrev.com/c/1351509 - http://shortn/_YQUh4yC9Tc This CL removes it to simplify the code before the next CL. It hasn't been used for several years and will unlikely be used in the future. Bug: 379923433 Change-Id: Ib0da340235a991b6d8edca041eae811540d4aa60 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6064306 Commit-Queue: Scott Lee <ddoman@chromium.org> Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
This commit is contained in:
@@ -208,31 +208,6 @@ My commit message is my best friend. It is my life.
|
||||
after_keys=['Some']),
|
||||
'Top\n\nSome: footer\nKey: value\nOther: footer')
|
||||
|
||||
self.assertEqual(
|
||||
git_footers.add_footer('Top\n\nSome: footer\nOther: footer',
|
||||
'Key',
|
||||
'value',
|
||||
before_keys=['Other']),
|
||||
'Top\n\nSome: footer\nKey: value\nOther: footer')
|
||||
|
||||
self.assertEqual(
|
||||
git_footers.add_footer(
|
||||
'Top\n\nSome: footer\nOther: footer\nFinal: footer',
|
||||
'Key',
|
||||
'value',
|
||||
after_keys=['Some'],
|
||||
before_keys=['Final']),
|
||||
'Top\n\nSome: footer\nKey: value\nOther: footer\nFinal: footer')
|
||||
|
||||
self.assertEqual(
|
||||
git_footers.add_footer(
|
||||
'Top\n\nSome: footer\nOther: footer\nFinal: footer',
|
||||
'Key',
|
||||
'value',
|
||||
after_keys=['Other'],
|
||||
before_keys=['Some']),
|
||||
'Top\n\nSome: footer\nOther: footer\nKey: value\nFinal: footer')
|
||||
|
||||
def testRemoveFooter(self):
|
||||
self.assertEqual(git_footers.remove_footer('message', 'Key'), 'message')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user