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

Unified Diff: tests/git_cl_test.py

Issue 2319903002: Remove redundant output in git_cl.py tests. (Closed)
Patch Set: Created 4 years, 3 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/git_cl_test.py
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index 961801ed8ff7208b40981666d6b7cf41947ac951..428f48796e634311fa91333d8f4467f89bdf291d 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -1957,7 +1957,10 @@ class TestGitCl(TestCase):
'current_revision': 'deadbeaf',
}
cl._codereview_impl.SubmitIssue = lambda wait_for_merge: None
+ out = StringIO.StringIO()
+ self.mock(sys, 'stdout', out)
self.assertEqual(0, cl.CMDLand(force=True, bypass_hooks=True, verbose=True))
+ self.assertRegexpMatches(out.getvalue(), 'Issue.*123 has been submitted')
if __name__ == '__main__':
« 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