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

Unified Diff: tests/gcl_unittest.py

Issue 126031: Add --no_watchlists to some tests to work around unit tests failures. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gcl_unittest.py
diff --git a/tests/gcl_unittest.py b/tests/gcl_unittest.py
index 9489cf4e29b002658c603e8e47f792e08aeec05e..4c8382f535c651a2d536e2eea41ad1090723b682 100755
--- a/tests/gcl_unittest.py
+++ b/tests/gcl_unittest.py
@@ -190,7 +190,7 @@ class UploadCLUnittest(GclTestsBase):
change_info = gcl.ChangeInfo('naame', 0, 0, 'deescription',
['aa', 'bb'])
change_info.Save = self.mox.CreateMockAnything()
- args = ['--server=a']
+ args = ['--server=a', '--no_watchlists']
change_info.Save()
gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True)
gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server')
@@ -208,13 +208,14 @@ class UploadCLUnittest(GclTestsBase):
gcl.SendToRietveld("/lint/issue%s_%s" % ('1', '2'), timeout=0.5)
gcl.os.chdir('somewhere')
self.mox.ReplayAll()
+
gcl.UploadCL(change_info, args)
def testNoTry(self):
change_info = gcl.ChangeInfo('naame', 0, 0, 'deescription',
['aa', 'bb'])
change_info.Save = self.mox.CreateMockAnything()
- args = ['--no-try']
+ args = ['--no-try', '--no_watchlists']
change_info.Save()
gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True)
gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server')
@@ -232,13 +233,14 @@ class UploadCLUnittest(GclTestsBase):
gcl.SendToRietveld("/lint/issue%s_%s" % ('1', '2'), timeout=0.5)
gcl.os.chdir('somewhere')
self.mox.ReplayAll()
+
gcl.UploadCL(change_info, args)
def testNormal(self):
change_info = gcl.ChangeInfo('naame', 0, 0, 'deescription',
['aa', 'bb'])
self.mox.StubOutWithMock(change_info, 'Save')
- args = []
+ args = ['--no_watchlists']
change_info.Save()
gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True)
gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698