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

Unified Diff: tests/trychange_unittest.py

Issue 125135: Add better try server settings automatic detection support (Closed)
Patch Set: Created 11 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 | « no previous file | trychange.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/trychange_unittest.py
diff --git a/tests/trychange_unittest.py b/tests/trychange_unittest.py
index 27f8db6119c4be3fc8fc650d85c067645bf07406..8690aae446fb583257c54f8a895d1a1b3e0d383d 100644
--- a/tests/trychange_unittest.py
+++ b/tests/trychange_unittest.py
@@ -5,7 +5,6 @@
"""Unit tests for trychange.py."""
-import os
import unittest
# Local imports
@@ -23,18 +22,19 @@ class TryChangeUnittest(TryChangeTestsBase):
"""General trychange.py tests."""
def testMembersChanged(self):
members = [
- 'EscapeDot', 'ExecuteTryServerScript', 'GIT', 'GetSourceRoot', 'GuessVCS',
+ 'EscapeDot', 'GIT', 'GetSourceRoot',
+ 'GetTryServerSettings', 'GuessVCS',
'HELP_STRING', 'InvalidScript', 'NoTryServerAccess', 'PathDifference',
- 'RunCommand', 'SCM', 'SCRIPT_PATH', 'SVN', 'TryChange', 'USAGE',
+ 'RunCommand', 'SCM', 'SVN', 'TryChange', 'USAGE',
'datetime', 'gcl', 'gclient', 'getpass', 'logging', 'optparse', 'os',
- 'shutil', 'sys', 'tempfile', 'traceback', 'urllib',
+ 'shutil', 'socket', 'sys', 'tempfile', 'traceback', 'upload', 'urllib',
]
# If this test fails, you should add the relevant test.
self.compareMembers(trychange, members)
class SVNUnittest(TryChangeTestsBase):
- """General trychange.py tests."""
+ """trychange.SVN tests."""
def testMembersChanged(self):
members = [
'GenerateDiff', 'ProcessOptions', 'options'
@@ -43,8 +43,8 @@ class SVNUnittest(TryChangeTestsBase):
self.compareMembers(trychange.SVN(None), members)
-class TryChangeUnittest(TryChangeTestsBase):
- """General trychange.py tests."""
+class GITUnittest(TryChangeTestsBase):
+ """trychange.GIT tests."""
def testMembersChanged(self):
members = [
'GenerateDiff', 'GetEmail', 'GetPatchName', 'ProcessOptions', 'options'
« no previous file with comments | « no previous file | trychange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698