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

Unified Diff: tests/gclient_scm_test.py

Issue 2786013: Incremental changes towards more efficient refactoring of gclient.py (Closed)
Patch Set: Created 10 years, 6 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 | « gclient_utils.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_scm_test.py
diff --git a/tests/gclient_scm_test.py b/tests/gclient_scm_test.py
index bd49adde77be72e0ea0d815b14b8991c1a27a980..4f971b2827eac31c6fe34bba025fa70ba9a5dceb 100755
--- a/tests/gclient_scm_test.py
+++ b/tests/gclient_scm_test.py
@@ -70,18 +70,17 @@ class SVNWrapperTestCase(BaseTestCase):
members = [
'AddAdditionalFlags', 'FullUrlForRelativeUrl', 'RunCommand',
'cleanup', 'diff', 'export', 'pack', 'relpath', 'revert',
- 'revinfo', 'runhooks', 'scm_name', 'status', 'update',
+ 'revinfo', 'runhooks', 'status', 'update',
'updatesingle', 'url',
]
# If you add a member, be sure to add the relevant test!
- self.compareMembers(self._scm_wrapper(), members)
+ self.compareMembers(self._scm_wrapper('svn://a'), members)
def testUnsupportedSCM(self):
- args = [self.url, self.root_dir, self.relpath]
- kwargs = {'scm_name' : 'foo'}
- exception_msg = 'Unsupported scm %(scm_name)s' % kwargs
- self.assertRaisesError(exception_msg, self._scm_wrapper, *args, **kwargs)
+ args = ['gopher://foo', self.root_dir, self.relpath]
+ exception_msg = 'No SCM found for url gopher://foo'
+ self.assertRaisesError(exception_msg, self._scm_wrapper, *args)
def testSVNFullUrlForRelativeUrl(self):
self.url = 'svn://a/b/c/d'
@@ -528,7 +527,7 @@ from :3
members = [
'FullUrlForRelativeUrl', 'RunCommand',
'cleanup', 'diff', 'export', 'pack', 'relpath', 'revert',
- 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url',
+ 'revinfo', 'runhooks', 'status', 'update', 'url',
]
# If you add a member, be sure to add the relevant test!
« no previous file with comments | « gclient_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698