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

Unified Diff: tests/git_footers_test.py

Issue 2354313003: Remove svn support from smaller git extensions (Closed)
Patch Set: rebase Created 4 years 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 28f9916548d12101d74214b9ddd22fcf1636087e..519f42f6cc9ae99505ecf42c1dda29e7450da8c4 100755
--- a/tests/git_footers_test.py
+++ b/tests/git_footers_test.py
@@ -25,16 +25,6 @@ My commit message is my best friend. It is my life. I must master it.
_position_footer = 'Cr-Commit-Position: %s\n' % _position
- _git_svn_id = ('svn://svn.chromium.org/chrome/trunk/src@290386'
- ' 0039d316-1c4b-4281-b951-d872f2087c98')
-
- _git_svn_id_footer = 'git-svn-id: %s\n' % _git_svn_id
-
- _git_svn_id_branch = (
- 'svn://svn.chromium.org/chrome/branches/blabble/src@177288')
-
- _git_svn_id_footer_branch = 'git-svn-id: %s\n' % _git_svn_id_branch
-
def testFootersBasic(self):
self.assertEqual(
git_footers.split_footers('Not-A: footer'),
@@ -52,32 +42,10 @@ My commit message is my best friend. It is my life. I must master it.
git_footers.parse_footers(self._message + self._position_footer),
{ 'Cr-Commit-Position': [ self._position ] })
self.assertEqual(
- git_footers.parse_footers(self._message + self._git_svn_id_footer),
- { 'Git-Svn-Id': [ self._git_svn_id ] })
- self.assertEqual(
git_footers.parse_footers(self._message + self._position_footer
+ self._position_footer),
{ 'Cr-Commit-Position': [ self._position, self._position ] })
- def testTrunkHeuristic(self):
- footers = git_footers.parse_footers(self._message + self._git_svn_id_footer)
- self.assertEqual(
- footers,
- { 'Git-Svn-Id': [ self._git_svn_id ] })
- self.assertEqual(
- git_footers.get_position(footers),
- ('refs/heads/master', '290386'))
-
- def testBranchHeuristic(self):
- footers = git_footers.parse_footers(self._message +
- self._git_svn_id_footer_branch)
- self.assertEqual(
- footers,
- { 'Git-Svn-Id': [ self._git_svn_id_branch ] })
- self.assertEqual(
- git_footers.get_position(footers),
- ('refs/branch-heads/blabble', None))
-
def testGetFooterChangeId(self):
msg = '\n'.join(['whatever',
'',
« 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