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

Unified Diff: tests/checkout_test.py

Issue 10825009: Remove GitSvn*Checkout implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 5 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 | « checkout.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/checkout_test.py
diff --git a/tests/checkout_test.py b/tests/checkout_test.py
index 26cb4453dc24220c08df5ecadcd10319572030a4..31e1f4f1f1225a3285a5146d497b6d38fa3e3352 100755
--- a/tests/checkout_test.py
+++ b/tests/checkout_test.py
@@ -429,79 +429,6 @@ class SvnCheckout(SvnBaseTest):
self.assertEquals(expected, values)
-class GitSvnCheckout(SvnBaseTest):
- name = 'foo.git'
-
- def _get_co(self, post_processors):
- self.assertNotEqual(False, post_processors)
- return checkout.GitSvnCheckout(
- self.root_dir, self.name[:-4],
- self.usr, self.pwd,
- self.svn_base, self.svn_trunk, post_processors)
-
- def testAll(self):
- expected = {
- 'author': self.FAKE_REPOS.USERS[0][0],
- }
- root = os.path.join(self.root_dir, self.name)
- self._check_base(self._get_co(None), root, True, expected)
-
- def testGitSvnPremade(self):
- # Test premade git-svn clone. First make a git-svn clone.
- git_svn_co = self._get_co(None)
- revision = git_svn_co.prepare(None)
- self.assertEquals(self.previous_log['revision'], revision)
- # Then use GitSvnClone to clone it to lose the git-svn connection and verify
- # git svn init / git svn fetch works.
- git_svn_clone = checkout.GitSvnPremadeCheckout(
- self.root_dir, self.name[:-4] + '2', 'trunk',
- self.usr, self.pwd,
- self.svn_base, self.svn_trunk, git_svn_co.project_path)
- self.assertEquals(
- self.previous_log['revision'], git_svn_clone.prepare(None))
-
- def testException(self):
- self._check_exception(
- self._get_co(None), 'fatal: corrupt patch at line 12\n')
-
- def testSvnProps(self):
- co = self._get_co(None)
- co.prepare(None)
- try:
- svn_props = [('foo', 'bar')]
- co.apply_patch(
- [patch.FilePatchDiff('chrome/file.cc', RAW.PATCH, svn_props)])
- self.fail()
- except patch.UnsupportedPatchFormat, e:
- self.assertEquals(e.filename, 'chrome/file.cc')
- self.assertEquals(
- e.status,
- 'Cannot apply svn property foo to file chrome/file.cc.')
- co.prepare(None)
- # svn:eol-style is ignored.
- svn_props = [('svn:eol-style', 'LF')]
- co.apply_patch(
- [patch.FilePatchDiff('chrome/file.cc', RAW.PATCH, svn_props)])
-
- def testProcess(self):
- self._test_process(self._get_co)
-
- def testPrepare(self):
- co = self._get_co(None)
- # TODO(maruel): Cheat here until prepare(revision != None) implemented.
- co.old_prepare = co.prepare
- def prepare(rev):
- # Basically, test that it is broken.
- self.assertEquals(1, rev)
- self.assertEquals(2, co.old_prepare(None))
- return 1
- co.prepare = prepare
- self._test_prepare(co)
-
- def testMove(self):
- self._check_move(self._get_co(None))
-
-
class RawCheckout(SvnBaseTest):
def setUp(self):
super(RawCheckout, self).setUp()
« no previous file with comments | « checkout.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698